Events
UI - Player Any Player clicks Left mouse button Down.
Local Variables
Conditions
Actions
Unit - Order all units in Unit Group to ( Move targeting relative points near (Point((Mouse X position clicked in the world), (Mouse Y position clicked in the world)))) (Replace Existing Orders)
I would like to "Issue Order Targeting Point" to a Unit stored as a Global Variable. I would like the unit to "Move" to the Mouse-clicked (X,Y) upon a Left-click.
This trigger works correctly when the Unit is on the terrain.(1st Example) The bottom trigger, however, does not work when the Unit is stored as a Global Variable instead of being placed on the map.
Works:
Events
UI - Player Any Player clicks Left mouse button Down.
Actions
Unit - Order Archon [118.86, 132.35] to ( Move targeting (Point((Mouse X position clicked in the world), (Mouse Y position clicked in the world)))) (Replace Existing Orders)
Doesn't Work:
Events
UI - Player Any Player clicks Left mouse button Down.
Actions
- Unit: Issue "Move" Order
Unit - Order [ENGINE] Link to ( Move targeting (Point((Mouse X position clicked in the world), (Mouse Y position clicked in the world)))) (Replace Existing Orders)
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
@Mille25: Go
Ah sorry...
I'm creating a unit. Then I'm trying to order the unit to move when the player left-clicks. But the unit won't move.
Does this work using a unit group?
Events UI - Player Any Player clicks Left mouse button Down. Local Variables Conditions Actions Unit - Order all units in Unit Group to ( Move targeting relative points near (Point((Mouse X position clicked in the world), (Mouse Y position clicked in the world)))) (Replace Existing Orders)
I would like to "Issue Order Targeting Point" to a Unit stored as a Global Variable. I would like the unit to "Move" to the Mouse-clicked (X,Y) upon a Left-click.
This trigger works correctly when the Unit is on the terrain.(1st Example) The bottom trigger, however, does not work when the Unit is stored as a Global Variable instead of being placed on the map.
Works: Events UI - Player Any Player clicks Left mouse button Down. Actions Unit - Order Archon [118.86, 132.35] to ( Move targeting (Point((Mouse X position clicked in the world), (Mouse Y position clicked in the world)))) (Replace Existing Orders)
Doesn't Work: Events UI - Player Any Player clicks Left mouse button Down. Actions
-Unit: Issue "Move" Order Unit - Order [ENGINE] Link to ( Move targeting (Point((Mouse X position clicked in the world), (Mouse Y position clicked in the world)))) (Replace Existing Orders)