• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

An Anti-Backstab Trigger?

Status
Not open for further replies.

Rui

Rui

Level 41
Joined
Jan 7, 2005
Messages
7,550
Events:
Generic Unit Event: A unit Is issued an order targeting an object

Conditions:
Boolean Comparison: (Attacked Unit) belongs to an ally of (Owner of (Attacking Unit)) Equal to True

Actions:
Unit - Issue Order with No Target: Order (Attacking Unit) to Stop


This should work. HF :wink:
 
Level 2
Joined
Feb 23, 2006
Messages
11
Rui said:
Events:
Generic Unit Event: A unit Is issued an order targeting an object

Conditions:
Boolean Comparison: (Attacked Unit) belongs to an ally of (Owner of (Attacking Unit)) Equal to True

Actions:
Unit - Issue Order with No Target: Order (Attacking Unit) to Stop


This should work. HF :wink:

it didnt work idk why =(
 
Level 2
Joined
Feb 23, 2006
Messages
11
DurotarLord said:
Code:
Anti Backstab
    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

there u go!

but wouldnt this still allow me to attack once b4 its enabled

Edit: Nvm test it and it worked, thank you.
 
Status
Not open for further replies.
Top