Help with a trigger

SutinG

Member
Reaction score
1
Hi, I need to make a trigger that do something like this but I don't know how...

Unit Group - Pick every unit in (Units owned by (Triggering player) of type SomeUnit) and do (Actions)
Loop - Actions
Set TempPoint1 = (Position of (Picked unit))

// But if there is no picked unit, then...
// Do something
// else...
// Do something
 

Inflicted

Currently inactive
Reaction score
63
IF units in Unit Group = 0 (Integer Comparison)

The actual line looks like this:
Trigger:
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • (Number of units in TempGroup) Equal to 0
    • Then - Actions
    • Else - Actions


Or am I missing something?

--

EDIT:

Wait a sec, how can you find the position of a unit if there is no unit?
If there are no units in the group, it will merely run 0 times.

You could check if the Picked Unit is Equal to No Unit, using this line:
Trigger:
  • (Picked unit) Equal to No unit

But that's fairly unusable.

If you could explain what you are trying to do, then perhaps I could help better.
 
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