- Joined
- Jun 22, 2009
- Messages
- 63
I made this spell called Backstab. Basicly the unit "teleports" to the back of the targeted unit, dealing extra damage. It works just fine the first time, but then it just teleporst you back to the middle of the map. +rep
-
Backstab
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Backstab (Neutral Hostile)
-
-
Actions
-
Set BS_Caster = (Triggering unit)
-
Unit - Pause BS_Caster
-
Set BS_Target = (Target unit of ability being cast)
-
Set BS_Facing = ((Facing of BS_Target) - 180.00)
-
Set BS_Position = ((Position of BS_Target) offset by 10.00 towards BS_Facing degrees)
-
Unit - Move BS_Caster instantly to BS_Position, facing (Facing of BS_Target) degrees
-
Wait 0.50 seconds
-
Animation - Play BS_Caster's Attack Slam animation
-
Wait 0.35 seconds
-
Unit - Cause BS_Caster to damage BS_Target, dealing 100.00 damage of attack type Hero and damage type Normal
-
Unit - Unpause BS_Caster
-
Custom script: call RemoveLocation(udg_BS_Position)
-
-