• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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