• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Unit - Unit within range....help

Status
Not open for further replies.
Level 5
Joined
Jul 31, 2004
Messages
108
Does anyone know what I can use like in this trigger

Level 1 Player Death 02
Events
Unit - A unit comes within 60.00 of Chicken 0000 <gen>
Conditions
Actions
For each (Integer A) from 0 to 50, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Triggering unit) Equal to Peta_ProbeL1_02[(Integer A)]
Then - Actions
Unit - Kill Chicken 0000 <gen>
Unit - Kill Peta_ProbeL1_02[(Integer A)]
Else - Actions
Do nothing
For each (Integer A) from 0 to 50, do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Triggering unit) Equal to Peta_ProbeL1_02[(Integer A)]
Then - Actions
Set Peta_ProbeL1_02[(Integer A)] = No unit
Custom script: set bj_forLoopAIndex = 51
Else - Actions
Do nothing

Can I use Unit - Kill (Matching Unit) or something else? It'd be a lot of help instead of making, however many more random spawn triggers, player 1 death 01, 02, 03, 04 X 9 each.

Thanks,
PalidinMaster3
 
Status
Not open for further replies.
Top