- Joined
- Mar 29, 2004
- Messages
- 222
I am trying to make it so when a unit attacks another unit from behind, that attacked unit is dealt extra damage. i lack a correct trigger to do so, but here it my trigger right now...
Backstab Damage
Events
Unit - A unit Is attacked
Conditions
(Min(((Integer((Facing of (Attacked unit)))) - 20), ((Integer((Facing of (Attacked unit)))) + 20))) Equal to (Integer((Facing of (Attacking unit)))
Actions
Special Effect - Create a special effect attached to the chest of (Attacked unit) using Objects\Spawnmodels\Human\HumanBlood\BloodElfSpellThiefBlood.mdl
Unit - Set life of (Attacked unit) to ((Life of (Attacked unit)) - 100.00)
I believe the Condition is incorrect, so what would be the right one?
One more thing, the attacking unit should not have to be directly on the back of a unit to deal Backstab damage, it should just be around the general area...
Backstab Damage
Events
Unit - A unit Is attacked
Conditions
(Min(((Integer((Facing of (Attacked unit)))) - 20), ((Integer((Facing of (Attacked unit)))) + 20))) Equal to (Integer((Facing of (Attacking unit)))
Actions
Special Effect - Create a special effect attached to the chest of (Attacked unit) using Objects\Spawnmodels\Human\HumanBlood\BloodElfSpellThiefBlood.mdl
Unit - Set life of (Attacked unit) to ((Life of (Attacked unit)) - 100.00)
I believe the Condition is incorrect, so what would be the right one?
One more thing, the attacking unit should not have to be directly on the back of a unit to deal Backstab damage, it should just be around the general area...