Leazy
You can change this now in User CP.
- Reaction score
- 50
Hello!
I'm making a spell which reflects projectiles that hits the target in front of him. This is what I've got (with udg_Caster being the projectile and udg_Target being the target):
The problem now is that the message is always displayed despite if the missile hits the target in front of the target or behind the target. What am I doing wrong here?
I'm making a spell which reflects projectiles that hits the target in front of him. This is what I've got (with udg_Caster being the projectile and udg_Target being the target):
Trigger:
- Defend Reflect
- Events
- Conditions
- Actions
- Set Point[10] = (Position of Target)
- Set Point[20] = (Position of Caster)
- Set Real[10] = (Angle from Point[1] to Point[2])
- Set Real[20] = (Facing of Target)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Real[10] Less than 0.00
- Then - Actions
- Set Real[10] = (Real[10] + 360.00)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- And - All (Conditions) are true
- Conditions
- And - All (Conditions) are true
- Conditions
- Real[1] Greater than or equal to (Real[20] - 90.00)
- Real[1] Less than or equal to (Real[20] + 90.00)
- Conditions
- And - All (Conditions) are true
- Conditions
- And - All (Conditions) are true
- Then - Actions
- Else - Actions
- Game - Display to (All players) the text: xxx
- If - Conditions
- Custom script: call RemoveLocation (udg_Point[10])
- Custom script: call RemoveLocation (udg_Point[20])
The problem now is that the message is always displayed despite if the missile hits the target in front of the target or behind the target. What am I doing wrong here?