• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

disable item attacking

Status
Not open for further replies.
Level 13
Joined
Sep 29, 2008
Messages
671
I have my item triggers. only one that works is when a unit picks up an item that isn't his it drops the item back, that one works but this one is: It should stop a unit from attacking if the owner of the triggering unit doesn't own the item. so far it doesn't work. its almost the same as the picking one but this one doesn't seem to work. is there something I missed or if someone could give me another way to do this?

[HIDDEN="Trigger]
  • Attacked
    • Events
      • Unit - A unit Is issued an order targeting an object
    • Conditions
      • (Target item of issued order) Not equal to No item
      • (Item-class of (Target item of issued order)) Not equal to Charged
      • (Issued order) Equal to (Order(attack))
      • (Owner of (Ordered unit)) Not equal to (Owner of (Target item of issued order))
    • Actions
      • Unit - Order (Triggering unit) to Stop
[/HIDDEN]
 
Level 18
Joined
Jan 21, 2006
Messages
2,552
Try putting a game message and see if the actions are even being executed. If not then it is likely your conditions which are the problem, and we can address that when we get to it. For now, put game text display actions before Unit - Order (Triggering unit) to Stop.
 
Status
Not open for further replies.
Top