Diable/Enable attack

Stealphish2

Active Member
Reaction score
0
Im making a marine vs zombie type map and i want to do the ammo thing.
i want to make it so that if a unit runs out of ammo he cant attack. iv got everything else sorted (i think) but i just cant figr that out.
Any ammo/weapon systems suggested wud be apreciated also but i mainly just want to kno how to turn unit attacks on and off.
churs
 

Igor_Z

You can change this now in User CP.
Reaction score
61
Use silence and make it to disable attacks? Or just create another unit and set its damage to 0
 

Prometheus

Everything is mutable; nothing is sacred
Reaction score
589
E: A unit acquires a target
A: order unit to stop

There's a way to remove the actual attack ability but I'm not 100% sure.
 

Tom_Kazansky

--- wraith it ! ---
Reaction score
157
When the Marine is out of ammo (or whoever you want to disable its attack), add the ability Cargo Hold (Orc Burrow) to it. This ability will disable the attack. And when the Marine has ammo, remove this ability.
 

MasterRofl

New Member
Reaction score
8
Do a check, if it's true, cast drunken haze on the marine (change the "attacks prevented" property of drunken haze). When it picks up ammo, purge/remove the buff.
 

OogaBooga

New Member
Reaction score
0
Better Way

A better way is to use the Unit - add classification and Unit - remove classification triggers, and use the "able to attack X units" classifications. Pretty sure that'll stop and re-allow attacks as you need to, with the proper triggers
 
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