• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Question 2

Status
Not open for further replies.
Level 13
Joined
Jun 3, 2011
Messages
1,058
hi guys i wan't to know how to create a trigger that if you attack Player 12(Brown - Friendly) It automatically cancel the attack that you are going to do help please or any of the players!
 
Level 12
Joined
Sep 11, 2011
Messages
1,176
  • Stop
    • Events
      • Unit - A unit owned by Player 12 (Brown) Is attacked
    • Conditions
    • Actions
      • Unit - Order (Attacking unit) to Stop
you can find that action in "Unit - Issue Order with no target"

add condition to specify the players, something like this.

  • (Owner of (Attacking unit)) Equal to Player 1 (Red)
 
Status
Not open for further replies.
Top