- Joined
- Aug 3, 2004
- Messages
- 2,909
1.
2. How can I remove a unit from a control group via triggers?
-
BirthSentry
-

Events
-


Unit - A unit Dies
-
-

Conditions
-

Actions
-


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


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



If - Conditions
-




(Current research level of Soul Sentry for (Owner of (Killing unit))) Equal to 1
-




(Number of units in (Units within 900.00 of TempLoc78 matching (((Owner of (Killing unit)) Equal to (Owner of (Matching unit))) and ((Unit-type of (Matching unit)) Equal to Death Knight)))) Greater than 0
-




(Number of units in (Units within 900.00 of TempLoc78 matching (((Owner of (Killing unit)) Equal to (Owner of (Matching unit))) and ((Unit-type of (Matching unit)) Equal to Soul Sentry)))) Less than 1
-
-



Then - Actions
-




Unit - Create 1 Soul Sentry for (Owner of (Killing unit)) at TempLoc78 facing Default building facing degrees
-
-



Else - Actions
-
-


Custom script: call RemoveLocation (udg_TempLoc78)
-
-
2. How can I remove a unit from a control group via triggers?




