I have this weird thing happening with a custom tower I made. I've used a duplicate of the photon cannon as base (duplicated only Actor and Turret) and called it Ion Cannon. I attached a small stargate model (actor) around it's floating orb via Host + [Subject] Ion Cannon (actor) and used Host Site Operations + for SOpAttachWeapon and a custom Local Offset. Added events in the model actor to create it when the turret was enable on the Ion Cannon and one to destroy it when the unit died. Also made a turret actor so the floaty orb would rotate when it aimed at something. Here's the weird part:
If I preplace the turret, everything works fine. However, if I upgrade it through another turret (ie, Photon Cannon > Ion Cannon), the attached model doesn't rotate or bob up and down (but the orb still does) and just stays there, static. I used the Spire > Greater Spire morph ability to make the upgrade ability.
Can it be done in the data editor, or do I need to make it happen via triggers? I've tried looking at some of the triggers and I'm none the wiser as to what I should do.
There is no 'on morph' event. Unless I missed it, I haven't seen anything that relates to morphing from one unit to another in the events. Currently I'm using TurretEnable to create the turret actor, and tried more TurretEnable event to destroy and create again, which didn't work. I tried using ActorCreation and Destruction, but that didn't do anything either (even when I picked the source name of the actor).
Could you maybe give me the specific events I have to use? Also, does order matter in events or is that just something for the trigger editor?
I think there may have been a slight miscommunication here. I have 2 towers, one is a Photon Cannon, and the other one is base off the photon cannon and renamed Ion Cannon. The Photon Cannon has an ability that makes it turn into an Ion Cannon.
As for the events, I still don't know how I'm supposed to create the turret actor on the Ion Cannon and destroy it and recreate it again.
I've tried:
TurretEnabled.IonCannon
Create
ActorCreation
Destroy
ActorDestruction
Create
...and a bunch of variations where I specify the actor in actor.creation and destruction. Nothing worked.
PS: I did manage to get a temporary solution via triggers but that includes removing and creating a new unit, which means I lose any grouping information. Even if there is a way to preserve that, I'd rather find a way to fix the problem inside the data editor since learning it is my aim atm.
PS2: just as a tangent, how do I create a special effect on caster when it ends morphing? I can do it in the trigger editor, but, as always, learning currently learning data :P
Yes there are.... Try the Ability: Info - Sections - Effects field. The Overlord Morph to Overseer ability has the Zerg General - Post Morph (Healing Effect) in that field.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Okay, my bad, but how does that help me with destroying and re-creating a turret actor? My morph ability functions correctly. Do I need to modify something about it to make the attachment work? I'm confused.
Under the actor events you can set it that when the morph ability finishes it destroys the old actor and makes a new one. Although simply making the turret reset to a predefined location before morphing would be easier.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Nothing I'm doing is working. I'd hate to inconvenience you but could you maybe make a test map to show what you're telling me to do? I'm still very new to all this and I'm afraid I need very specific details to achieve anything.
I have this weird thing happening with a custom tower I made. I've used a duplicate of the photon cannon as base (duplicated only Actor and Turret) and called it Ion Cannon. I attached a small stargate model (actor) around it's floating orb via Host + [Subject] Ion Cannon (actor) and used Host Site Operations + for SOpAttachWeapon and a custom Local Offset. Added events in the model actor to create it when the turret was enable on the Ion Cannon and one to destroy it when the unit died. Also made a turret actor so the floaty orb would rotate when it aimed at something. Here's the weird part:
If I preplace the turret, everything works fine. However, if I upgrade it through another turret (ie, Photon Cannon > Ion Cannon), the attached model doesn't rotate or bob up and down (but the orb still does) and just stays there, static. I used the Spire > Greater Spire morph ability to make the upgrade ability.
That is a known issue with turrets you must destroy and recreate the turret actor.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
Can it be done in the data editor, or do I need to make it happen via triggers? I've tried looking at some of the triggers and I'm none the wiser as to what I should do.
Help D:
Get the upgraded unit to use a different turret. This will destroy the existing turret actor and create a fresh one.
No idea if this fixes your problem though.
The upgraded tower has it's own turret already.
As stated alter the events of the Turret type actors to be destroyed/created on morph.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
There is no 'on morph' event. Unless I missed it, I haven't seen anything that relates to morphing from one unit to another in the events. Currently I'm using TurretEnable to create the turret actor, and tried more TurretEnable event to destroy and create again, which didn't work. I tried using ActorCreation and Destruction, but that didn't do anything either (even when I picked the source name of the actor).
Could you maybe give me the specific events I have to use? Also, does order matter in events or is that just something for the trigger editor?
PS: Ability Morph does't work either btw.
Sorry thought you were morphing from one photon cannon to another.
Check the top 5 events used by Unit type actors. Those are what are needed to get it created if placed in the editor or buit.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
I think there may have been a slight miscommunication here. I have 2 towers, one is a Photon Cannon, and the other one is base off the photon cannon and renamed Ion Cannon. The Photon Cannon has an ability that makes it turn into an Ion Cannon.
As for the events, I still don't know how I'm supposed to create the turret actor on the Ion Cannon and destroy it and recreate it again.
I've tried:
TurretEnabled.IonCannon
Create
ActorCreation
Destroy
ActorDestruction
Create
...and a bunch of variations where I specify the actor in actor.creation and destruction. Nothing worked.
PS: I did manage to get a temporary solution via triggers but that includes removing and creating a new unit, which means I lose any grouping information. Even if there is a way to preserve that, I'd rather find a way to fix the problem inside the data editor since learning it is my aim atm.
PS2: just as a tangent, how do I create a special effect on caster when it ends morphing? I can do it in the trigger editor, but, as always, learning currently learning data :P
Then how you upgrading from one unit to the next?
Use a Morph type ability like all other building upgrades
Under the morph ability is an effects field. Just look at how the zerg generic heal when morphing finishes.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
I'm am using a morph ability. I based it on Spire > Greater Spire. There aren't any effects fields on abilities :\
Yes there are.... Try the Ability: Info - Sections - Effects field. The Overlord Morph to Overseer ability has the Zerg General - Post Morph (Healing Effect) in that field.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
Okay, my bad, but how does that help me with destroying and re-creating a turret actor? My morph ability functions correctly. Do I need to modify something about it to make the attachment work? I'm confused.
Under the actor events you can set it that when the morph ability finishes it destroys the old actor and makes a new one. Although simply making the turret reset to a predefined location before morphing would be easier.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
Nothing I'm doing is working. I'd hate to inconvenience you but could you maybe make a test map to show what you're telling me to do? I'm still very new to all this and I'm afraid I need very specific details to achieve anything.
The siege tank has a turret and morphs between forms. Use that as an example.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg