Note: I've deleted stuff in this trigger that doesn't apply to this thread.
When I Left Click, it throws a Shuriken. But it is always off. It seems like it can only be thrown every 15 degrees or so in relation to which direction the unit is facing. It isn't very accurate at all, and I don't know why. Any ideas?
-------------------------
UI - Player 1 clicks Left mouse button Down.
Local Variables
ClickedPosition = (Point((Mouse X position clicked in the world), (Mouse Y position clicked in the world), (Mouse Z position clicked in the world))) <Point>
Actions
Unit - Create 1 Ninja Shuriken for player 1 at ((Position of Ninja [111.37, 77.90]) offset by 1.0 towards (Facing of ClickedPosition) degrees) facing ClickedPosition (Ignore Placement)
Unit - Order (Last created unit) to ( Move targeting (ClickedPosition offset by 400.0 towards (Facing of (Last created unit)) degrees)) (Replace Existing Orders)
-------------------------
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Note: I've deleted stuff in this trigger that doesn't apply to this thread.
When I Left Click, it throws a Shuriken. But it is always off. It seems like it can only be thrown every 15 degrees or so in relation to which direction the unit is facing. It isn't very accurate at all, and I don't know why. Any ideas?
-------------------------
UI - Player 1 clicks Left mouse button Down.
Local Variables
ClickedPosition = (Point((Mouse X position clicked in the world), (Mouse Y position clicked in the world), (Mouse Z position clicked in the world))) <Point>
Actions
Unit - Create 1 Ninja Shuriken for player 1 at ((Position of Ninja [111.37, 77.90]) offset by 1.0 towards (Facing of ClickedPosition) degrees) facing ClickedPosition (Ignore Placement)
Unit - Order (Last created unit) to ( Move targeting (ClickedPosition offset by 400.0 towards (Facing of (Last created unit)) degrees)) (Replace Existing Orders)
-------------------------