• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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