neckface
terrain contest winner! :) dance contest loser. :(
- Reaction score
- 34
Hi! ok here's a tricky one:
I want to create a passive backstab ability. This 4-level ability causes the thief to gain 40/60/80/100 percent of his agility in bonus damage whenever he is directly behind his target.
GUI only please.
Mechanics:
Event:
A unit is attacked
Conditions:
Attacking unit=thief
Attacking unit within 50 distance (his attack range) of attacked unit (how to do this?)
Attacking unit has ability Backstab (how to determine this?)
Actions:
Set target and caster variables and angle facing variables.
Compare the facing angle of target to facing angle of the thief, if there is less then 45 degree deviation damage target using above formula and create a "blood" special effect.
I am at a complete loss on how to compare facing angles with a margin of 45o! Please help me with this math! Any advice or direction appreciated. Thanks!
I want to create a passive backstab ability. This 4-level ability causes the thief to gain 40/60/80/100 percent of his agility in bonus damage whenever he is directly behind his target.
GUI only please.
Mechanics:
Event:
A unit is attacked
Conditions:
Attacking unit=thief
Attacking unit within 50 distance (his attack range) of attacked unit (how to do this?)
Attacking unit has ability Backstab (how to determine this?)
Actions:
Set target and caster variables and angle facing variables.
Compare the facing angle of target to facing angle of the thief, if there is less then 45 degree deviation damage target using above formula and create a "blood" special effect.
I am at a complete loss on how to compare facing angles with a margin of 45o! Please help me with this math! Any advice or direction appreciated. Thanks!