HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Kill All unit owned by player ?

07-05-2003, 05:24 PM#1
Dark Azonik
Ok actually ive been workin on a trigger that if you kill the Runner of player 1 all the units owned by player 1 dies...its a easy trigger but i cant seem to get this working.. i did a variable and the variable is

-(Name) Type=Unit group Initial value=units owned by player 1..

my problem is the initial value it sets itself to defaut everytime i click ''Ok'' to finish the variable...(Pretty weird huh..)

by the way im using RoC (Waiting for TFT..i should receive it in 2-3 days cuz i pre ordered)

can some 1 tell me the trigger to get this working ?
07-05-2003, 05:37 PM#2
angelofdeathx
why need a variable when you could just be like pick every unit owned by played 1 in playable map area and do unit kill or something the exact wording eludes me right now
07-05-2003, 05:54 PM#3
Dark Azonik
hmm..well what u said was not exactly the good answer..but u were close of it and i made it work now :D
07-05-2003, 05:54 PM#4
element_5
Code:
Events:
----Unit - Runner 0001 <gen> Dies

Actions:
----Unit Group - Pick every unit in (Units owned by (Owner of Dying unit))) and do (Unit - Kill (Picked unit))

If the Runner isn't pre-placed, then use this for the event and condition:
Code:
Events:
----Unit - A unit owned by Player 1 (Red) Dies

Conditions:
----(Unit-type of (Dying unit)) Equal to Runner

And if you wanted to just kill units instead of units/buildings, then change the action to this:

Code:
Unit Group - Pick every unit in (Units owned by (Owner of Dying unit)) matching (((Matching unit) is A structure) Equal to False)) and do (Unit - Kill (Picked unit))