- Joined
- Oct 28, 2019
- Messages
- 523
Im trying makin a system I´ve saw in other game, that if a unit takes a hit in its back, it receive more damage. Im trying with damage engime with no sucess, using the facing angle, need help. This is what ´ve done until now.
The problem is when a unit facing angle is near the 340-350 and the other is near the zero, wich would need cause "back" damage, but this system cant read that
The problem is when a unit facing angle is near the 340-350 and the other is near the zero, wich would need cause "back" damage, but this system cant read that
-
Facing Angle Copy
-
Events
-
Game - DamageEvent becomes Equal to 1.00
-
-
Conditions
-
(Unit-type of DamageEventSource) Not equal to Bowman
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Facing of DamageEventTarget) - (Facing of DamageEventSource)) Less than or equal to 90.00
-
((Facing of DamageEventTarget) - (Facing of DamageEventSource)) Greater than or equal to 0.00
-
-
Then - Actions
-
Set VariableSet DamageEventAmount = ((2.50 x DamageEventAmount) - (Armor of DamageEventTarget))
-
Else - Actions
-
Set VariableSet DamageEventAmount = ((1.00 x DamageEventAmount) - (Armor of DamageEventTarget))
-
-
-
-
Last edited: