Preventing a Unit From Attacking

WolfieeifloW

WEHZ Helper
Reaction score
372
From attacking at all, or certain things/units?
From attacking in certain regions, what?
Include more information :) .
 

Romek

Super Moderator
Reaction score
963
Event: Unit - A Unit Is Attacked
Condition: N/A
Action: Unit - Order (Attacking Unit) to "stop"

Freehand, but shouldn't be too far off the real thing.
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Code:
Untitled Trigger 001
    Events
        Unit - A unit Is attacked
    Conditions
    Actions
        Unit - Order (Attacking unit) to Stop
 

Agent HUNK

New Member
Reaction score
0
Romek and WolfieNoCT offer the the best way to get it done for attacking period. If it's to prevent teamkilling then you're best off with something like this.

Code:
Events
Unit - A unit Is attacked

Conditions
((Owner of (Attacking unit)) is an ally of (Owner of (Attacked unit))) Equal to True

Actions
Unit - Order (Attacking unit) to Stop
 
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