- Joined
- Oct 17, 2007
- Messages
- 547
What im trying to do is trigger the map so that if a player's unit dont come within 900 range of any of the computer control units, then give that comp unit a timed life of 30 sec. Can any1 help?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Add to Group Init

Events


Map initialization

Conditions

Actions


Unit Group - Pick every unit in (Units in (Playable map area) matching ((Owner of (Matching unit)) Not equal to Neutral Hostile)) and do (Actions)



Loop - Actions




Unit Group - Add (Picked unit) to OutOfRange
Add to Group

Events

Conditions

Actions


Unit Group - Add (Triggering unit) to OutOfRange
Remove From Group

Events

Conditions

Actions


Unit Group - Remove (Triggering unit) from OutOfRange
Add Units Init

Events


Time - Elapsed game time is 0.15 seconds

Conditions

Actions


Unit Group - Pick every unit in (Units in (Playable map area) owned by Neutral Hostile) and do (Actions)



Loop - Actions




Trigger - Add to Add to Group <gen> the event (Unit - A unit leaves (Region centered at (Position of (Picked unit)) with size (900.00, 900.00)))




Trigger - Add to Remove From Group <gen> the event (Unit - A unit enters (Region centered at (Position of (Picked unit)) with size (900.00, 900.00)))
Add Units Entering Map

Events


Unit - A unit enters (Playable map area)

Conditions


(Owner of (Triggering unit)) Equal to Neutral Hostile

Actions


Trigger - Add to Add to Group <gen> the event (Unit - A unit leaves (Region centered at (Position of (Triggering unit)) with size (900.00, 900.00)))


Trigger - Add to Remove From Group <gen> the event (Unit - A unit enters (Region centered at (Position of (Triggering unit)) with size (900.00, 900.00)))
Kill

Events


Time - Every 1.00 seconds of game time

Conditions

Actions


Wait 30.00 seconds


Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) is in OutOfRange) Equal to True)) and do (Actions)



Loop - Actions




Unit - Set life of (Picked unit) to ((Percentage life of (Picked unit)) - 100.00)%
Kill Copy

Events


Time - Every 1.00 seconds of game time

Conditions

Actions


Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) is in OutOfRange) Equal to True)) and do (Actions)



Loop - Actions




Unit - Set life of (Picked unit) to ((Percentage life of (Picked unit)) - 3.34)%

Kill

Events


Time - Every 1.00 seconds of game time

Conditions

Actions


Wait 30.00 seconds


Unit Group - Pick every unit in OutOfRange and do (Actions)



Loop - Actions




Unit - Set life of (Picked unit) to ((Percentage life of (Picked unit)) - 100.00)%
Kill Copy

Events


Time - Every 1.00 seconds of game time

Conditions

Actions


Unit Group - Pick every unit in OutOfRange and do (Actions)



Loop - Actions




Unit - Set life of (Picked unit) to ((Percentage life of (Picked unit)) - 3.34)%
