- Joined
- Aug 23, 2008
- Messages
- 2,319
I've made a trigger
Unit1 is a unit that when this trigger activates, he has:
0% animation speed
Movement speed = 1
Paused
Unit2 is a unit that when this trigger activation, he has:
Facing angle between 200 and 280 (as mentioned in the conditions)
Gameplay Constants were set to give units a minimum movement speed of 1.
When Player 1 presses the Up Arrow key (another trigger), Unit1 has for 0.10 seconds:
100% animation speed
Movement speed = default (50)
Unpaused
After that, the unit goes back to the stats he had when this trigger got activated.
So I think this trigger should cause the actions to be executed when the unit faces 200-280 degrees and the player presses the Up Arrow key.
But for some reason this trigger always activates when Unit2 faces between 200 and 280 degrees, even when Player 1 didn't press the Up Arrow key, and thus the movement speed of Unit1 is 1. There are no other triggers that change the movement speed of Unit1.
What did I do wrong about this trigger? Everything works except these conditions.
-
Sighted
-
Events
-
Time - Every 0.01 seconds of game time
-
-
Conditions
-
Actions
-
Set Unit1 = Unit 0000 <gen>
-
Set Unit2 = Unit 0012 <gen>
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Facing of Unit2) Greater than or equal to 200.00
-
(Facing of Unit2) Less than or equal to 280.00
-
(Current movement speed of Unit1) Greater than or equal to 2.00
-
-
Then - Actions
-
Animation - Play Unit2's attack animation
-
Floating Text - Create floating text that reads Grrrrr... above Hedgehog1 with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
-
Unit - Unpause Unit1
-
Unit - Set Unit1 movement speed to (Default movement speed of Frog1)
-
Animation - Change Unit1's animation speed to 100.00% of its original speed
-
Unit - Order Unit1 to Move To (Center of Unit1 start Player 1 <gen>)
-
Wait 1.00 seconds
-
Floating Text - Destroy (Last created floating text)
-
-
Else - Actions
-
Do nothing
-
-
-
-
Unit1 is a unit that when this trigger activates, he has:
0% animation speed
Movement speed = 1
Paused
Unit2 is a unit that when this trigger activation, he has:
Facing angle between 200 and 280 (as mentioned in the conditions)
Gameplay Constants were set to give units a minimum movement speed of 1.
When Player 1 presses the Up Arrow key (another trigger), Unit1 has for 0.10 seconds:
100% animation speed
Movement speed = default (50)
Unpaused
After that, the unit goes back to the stats he had when this trigger got activated.
So I think this trigger should cause the actions to be executed when the unit faces 200-280 degrees and the player presses the Up Arrow key.
But for some reason this trigger always activates when Unit2 faces between 200 and 280 degrees, even when Player 1 didn't press the Up Arrow key, and thus the movement speed of Unit1 is 1. There are no other triggers that change the movement speed of Unit1.
What did I do wrong about this trigger? Everything works except these conditions.