- Joined
- Aug 19, 2007
- Messages
- 1,377
Hi all,
I use a dummy unit for an effect for a building, and I want to remove it as soon as the building is detroyed. I use this trigger for it:
I use a dummy unit for an effect for a building, and I want to remove it as soon as the building is detroyed. I use this trigger for it:
-
Remove RCore Effect
-

Events
-


Unit - A unit Dies
-
-

Conditions
-


(Unit-type of (Dying unit)) Equal to Nuclear Pylon
-
-

Actions
-


Set TEMP_PointRadiating2 = (Position of (Dying unit))
-


Custom script: set bj_wantDestroyGroup = true
-


Unit Group - Pick every unit in (Units within 25.00 of TEMP_PointRadiating2 matching ((Unit-type of (Matching unit)) Equal to Radiation)) and do (Actions)
-



Loop - Actions
-




Unit - Remove (Picked unit) from the game
-
-
-


Custom script: call RemoveLocation(udg_TEMP_PointRadiating2)
-
-




