Alright, so I managed to attach a Warp Prism to a structure once it morphs into a second one by creating a Model Actor with the Warp Prism Model and adding an Event in the morphed structure's Actor which says that once this Morph ability is done, then the Warp Prism shall be created.
But... For some reason, changing the Event in the second structure to create the Warp Prism once it has been constructed doesn't seem to do anything.
To make it more clear:
AbilMorph.UpgradeToSacredNexus.Finish
MorphFrom Nexus
MorphTo Sacred Nexus
Create SacredWarpPrism
This works. Now the second one:
UnitConstruction.SacredNexus.Finish
Create.SacredWarpPrism
If my Probe constructs the Sacred Nexus and it finishes warping, then the Actor is not created. So, what am I doing wrong?
The Warp Prism is attached to the 'Overhead' attachment point.
Ugh, sometimes the simple things are the solution. I assumed UnitBirth is refering to the moment the Unit enters the Map, including construction. But changing the Event from UnitConstruction to UnitBirth solved my problem. Thank you. But I still don't understand why Construction didn't work.
@Oatin: Go I guess it's because the unit model was already loaded when the construction began. I don't enderstand all the details of how those actor events actually work so it's just a guess.
Alright, so I managed to attach a Warp Prism to a structure once it morphs into a second one by creating a Model Actor with the Warp Prism Model and adding an Event in the morphed structure's Actor which says that once this Morph ability is done, then the Warp Prism shall be created.
But... For some reason, changing the Event in the second structure to create the Warp Prism once it has been constructed doesn't seem to do anything.
To make it more clear:
This works. Now the second one:
If my Probe constructs the Sacred Nexus and it finishes warping, then the Actor is not created. So, what am I doing wrong? The Warp Prism is attached to the 'Overhead' attachment point.
@Oatin: Go Does it work with a UnitBirth.SacredNexus event?
@SoulFilcher: Go
Ugh, sometimes the simple things are the solution. I assumed UnitBirth is refering to the moment the Unit enters the Map, including construction. But changing the Event from UnitConstruction to UnitBirth solved my problem. Thank you. But I still don't understand why Construction didn't work.
@Oatin: Go I guess it's because the unit model was already loaded when the construction began. I don't enderstand all the details of how those actor events actually work so it's just a guess.
Unit birth only applies to the unit being created by effects or abilities. Morph is just changing the form of an existing unit.
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