Could someone point out what I've got wrong here and the special effect doesn't die when it's supposed to? It's a custom birth mesh trigger and the attached effect model should go away when the wait time ends.
-
Untitled Trigger 003
-

Events
-


Unit - A unit Begins construction
-
-

Conditions
-


Or - Any (Conditions) are true
-



Conditions
-




(Unit-type of (Constructing structure)) Equal to Scythian Barracks
-




(Unit-type of (Constructing structure)) Equal to Scythian Storehouse
-




(Unit-type of (Constructing structure)) Equal to Scythian Warlord's Stables
-




(Unit-type of (Constructing structure)) Equal to Scythian Market
-




(Unit-type of (Constructing structure)) Equal to Scythian Civ Center
-
-
-
-

Actions
-


Custom script: local effect udg_SFX
-


Custom script: local unit udg_Building
-


Set Building = (Constructing structure)
-


Animation - Change Building's vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
-


Special Effect - Create a special effect attached to the origin of Building using war3mapImported\BirthMesh.mdx
-


Set SFX = (Last created special effect)
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Unit-type of Building) Equal to Scythian Barracks
-
-



Then - Actions
-




Wait 10.00 seconds
-
-



Else - Actions
-




If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-





If - Conditions
-






(Unit-type of Building) Equal to Scythian Storehouse
-
-





Then - Actions
-






Wait 5.00 seconds
-
-





Else - Actions
-






If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-







If - Conditions
-








(Unit-type of Building) Equal to Scythian Warlord's Stables
-
-







Then - Actions
-








Wait 20.00 seconds
-
-







Else - Actions
-








If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-









If - Conditions
-










(Unit-type of Building) Equal to Scythian Market
-
-









Then - Actions
-










Wait 10.00 seconds
-
-









Else - Actions
-










If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-











If - Conditions
-












(Unit-type of Building) Equal to Scythian Civ Center
-
-











Then - Actions
-












Wait 120.00 seconds
-
-











Else - Actions
-
-
-
-
-
-
-
-
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Building is alive) Equal to True
-
-



Then - Actions
-




Special Effect - Destroy SFX
-




Animation - Change Building's vertex coloring to (100.00%, 100.00%, 100.00%) with 100.00% transparency
-
-



Else - Actions
-
-
-







