How to best do this?

Squishinator

New Member
Reaction score
3
how do i do a condition like x only happens if a unit owned by player x is within y range of z unit? i tried using a unit group thing but the loop made it do the trigger for every unit within the unit...


Dont give me shit about the title, i coulnt think of how to name it.
 

elmstfreddie

The Finglonger
Reaction score
203
if/then/else

create a unit group, units within y range of z unit
pick every unit in the unit group
if picked unit = unit x
then... do your stuff
else... do nadda
 

Squishinator

New Member
Reaction score
3
i did that, with unit x being any unit not owned by player 12, and it did the trigger x however many units there were in the unit group
 

jig7c

Stop reading me...-statement
Reaction score
123
play with the conditions

units within 500 of z matching (matching unit is owned/dead/alive/hero/undead/yada yada...)
 

Squishinator

New Member
Reaction score
3
i want a specific answer, because i am sure that no matter the condition, there will most likely be more than one units matching the condition, thus the same original problem.
 

Igor_Z

You can change this now in User CP.
Reaction score
61
Use Distance between X point and Y point equal to Z(number) and than do actions
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top