Assassinate Triggers/ Help for creating a spell

Status
Not open for further replies.
Level 10
Joined
May 21, 2006
Messages
323
I wanted to create a spell which causes more damage, then the attacker stands behind the attacked unit, but I wasn´t able to find out which REALs I have to use.

Would be thankful for help need that for a campain.

Zuna
 
  • Actions
    • Set Points[1] = (Position of (Triggering unit))
    • Set Points[2] = (Position of (Target unit of ability being cast))
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Cos(((Facing of (Triggering unit)) - (Angle from Points[1] to Points[2])))) Less than (Cos(110.00))
      • Then - Actions
        • Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing 1000.00 damage of attack type Spells and damage type Normal
      • Else - Actions
        • Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing 200.00 damage of attack type Spells and damage type Normal
    • Custom script: call RemoveLocation (udg_Points[1])
    • Custom script: call RemoveLocation (udg_Points[2])
 
Status
Not open for further replies.
Back
Top