OneBadPsycho
10100111001
- Reaction score
- 93
Hello.
I have this trigger, which should "repel" or bounce an object moving into it:
My problem is, whenever the unit hits the region/wall its placed on, it gradually bounces off, like this:
instead of doing this:
(Got the math equation!)
I tried to make a trigger to test it, and it made the unit change facing angle gradually:
So how can I fix this? How can I make the unit change facing angle instantly?
Any help is greatly appreciated!
I have this trigger, which should "repel" or bounce an object moving into it:
Code:
Wall1
Events
Unit - A unit enters Bound 1 <gen>
Conditions
((Entering unit) is in SpellUg) Equal to True
Actions
Set OLoc = (Position of (Entering unit))
Set OAngle = (Facing of (Entering unit))
Unit - Move (Entering unit) instantly to OLoc, facing (OAngle + (2.00 x (180.00 - OAngle))) degrees
Custom script: call RemoveLocation (udg_OLoc)
instead of doing this:
(Got the math equation!)
I tried to make a trigger to test it, and it made the unit change facing angle gradually:
Code:
Untitled Trigger 001
Events
Player - Player 1 (Red) skips a cinematic sequence
Conditions
Actions
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
Unit - Make (Picked unit) face 90.00 over 0.00 seconds
So how can I fix this? How can I make the unit change facing angle instantly?
Any help is greatly appreciated!