MidnightGLOW
New Member
- Reaction score
- 1
Is their a way to set an objective to win?
eg. if you run into this flag you win.
eg. if you run into this flag you win.
a unit comes within xx
condition
equal to your unit
actions
Game, Victory Team 1
Code:[B]a unit comes within xx [/B] condition equal to your unit actions Game, Victory Team 1
Blbla
Events
Unit - A unit comes within 100.00 of [unit] [b]OR[/b] Unit - A unit enters [rect]
Conditions
Actions
For each (Integer A) from 1 to (Number of players in (All players controlled by a User player)), do (Actions)
Loop - Actions
Game - Victory (Player((Integer A))) (Show dialogs, Show scores)
Here's an exact code. Also, there is a ''Unit comes within range of unit'', but it's not under generic unit, it's an own category.
Code:Blbla Events Unit - A unit comes within 100.00 of [unit] [b]OR[/b] Unit - A unit enters [rect] Conditions Actions For each (Integer A) from 1 to (Number of players in (All players controlled by a User player)), do (Actions) Loop - Actions Game - Victory (Player((Integer A))) (Show dialogs, Show scores)