Detecting Backstab/Windwalk

Cokemonkey11

New Member
Reaction score
18
I'm trying to create an ability *triggers only* that will detect when a unit (special ops/scout type) backstabs an enemy (with windwalk)

I will do the effect/actions later I just need to know what events/conditions to use to detect it.

Thanks!
 

Cokemonkey11

New Member
Reaction score
18
Hmm I guess I wasn't very specific with what I'm asking.

I know how to check if the unit is behind him and all that.

I'm trying to figure out how to only apply bonuses if the unit attacks with windwalk (I don't want the extra dammage if they didn't use the 'windwalk' ability)

When I was saying backstab I was referring to 'Data - Backstab Dammage' within the ability settings.

Can you tell me how to detect if for example a unit has done extra dammage because of a bonus or something..?

Code:
scoutBackstab
    Events
        Unit - A unit Begins casting an ability
    Conditions
        (Ability being cast) Equal to Assasinate 
        (Unit-type of (Ordered unit)) Equal to Scout [MP7]
    Actions
        Unit - Explode (Target unit of ability being cast)
        Special Effect - Create a special effect at (Position of (Target unit of ability being cast)) using Abilities\Spells\NightElf\TrueshotAura\TrueshotAura.mdl

That's what I tried before but unfortunately 'begins casting ability' refers to when the unit actually begins to go 'stealth' with windwalk.
 

Sim

Forum Administrator
Staff member
Reaction score
534
Tried "A unit is attacked"?

I think the unit still has the windwalk buff, therefore you could check for the buff.
 
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