HydraRancher
Truth begins in lies
- Reaction score
- 197
Trigger:
- Undead Building
- Events
- Unit - A unit Begins construction
- Conditions
- Or - Any (Conditions) are true
- Conditions
- (Unit-type of (Constructing structure)) Equal to Graveyard
- Conditions
- Or - Any (Conditions) are true
- Actions
- Custom script: local effect udg_Temp_SFX
- Custom script: local unit udg_Temp_Unit
- Set Temp_Unit = (Constructing structure)
- Animation - Change Temp_Unit's vertex coloring to (100.00%, 100.00%, 100.00%) with 100.00% transparency
- Special Effect - Create a special effect attached to the origin of Temp_Unit using UBirth.mdx
- Set Temp_SFX = (Last created special effect)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Unit-type of Temp_Unit) Equal to Graveyard
- Then - Actions
- Wait 15.00 seconds
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Temp_Unit is alive) Equal to True
- Then - Actions
- Special Effect - Destroy Temp_SFX
- Animation - Change Temp_Unit's vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
- Else - Actions
- If - Conditions
- Custom script: set udg_Temp_Unit = null
- Custom script: set udg_Temp_SFX = null
- Events
Here is my trigger. I tried to follow Pyrities trigger to replace the birth animation. When i tested it, the model was invisible and there was a bunch of small SFX's. If I switch the Animation actions around, both of the birth animations play and the custom one never dissapears.