In range, Change to hostile.

Grags_1977

Ultra Cool Member
Reaction score
32
ok, I'm trying to make my Hostile units Passive until a player gets too close.
So far i've not been able to figure out a decent way to do this without doing a trigger for every single hostile unit in the map.

Any ideas?


EDIT: Example
Trigger:
  • Blah
    • Events
      • Unit - A unit comes within 500.00 of PASSIVEUNIT
    • Conditions
    • Actions
      • Unit - Change ownership of PASSIVEUNIT to Neutral Hostile and Change color
 

BloodySkullz

Active Member
Reaction score
10
I think you can try:

Trigger 01:
Trigger:
  • Trigger01
    • Events
      • Unit - A unit enters (Playable map area)
    • Conditions
    • <Your conditions>
    • Actions
      • Trigger - Add to Trigger02 <gen> the event (Unit - A unit comes within 500.00 of (Triggering unit))


Trigger 02:
Trigger:
  • Trigger02
    • Events
    • Conditions
    • Actions
      • Unit - Change ownership of (Triggering unit) to Player 1 (Red) and Change color


Or you can use Timers and make a periodic check.
 

KaerfNomekop

Swim, fishies. Swim through the veil of steel.
Reaction score
613
You could make the units Rescuable, then use the A unit Is rescued event to make it hostile.
Trigger:
  • Hostility
    • Events
      • Unit - A unit Is rescued
    • Conditions
    • Actions
      • Unit - Change ownership of (Triggering unit) to Neutral Hostile and Change color
 

Grags_1977

Ultra Cool Member
Reaction score
32
Thank you both. Went with KaerfNomekops Idea. Worked a treat thanks a lot!

+Rep

EDIT: Hmm how does one give rep these days?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top