There is an issue with my camera for a Third Person Shooter map. It follows well on flat floors. HOWEVER, as it nears mountains or tall objects, it travels up the object instead of staying with my character.
Now, my question is:
Is there a way to prevent the camera from moving up tall objects, and make it stick to the character?
Thank you!
EDIT: I have another question.
Is it possible to order an unit to move with a click of the left mouse button instead of the right one?
EDIT 2: Another.
Is there a way to attach a region/point to your mouse cursor?
Not sure about your camera issue, but for the first question you could make a trigger like this one:
Events
UI - Player Any Player clicks Left mouse button Down.
Local Variables
CursorX = (Mouse X position clicked in the world) <Real>
CursorY = (Mouse Y position clicked in the world) <Real>
CursorZ = (Mouse Z position clicked in the world) <Real>
Conditions
Actions
Unit - Order all units in (Selected units for player (Triggering player)) to ( Move targeting (Point(CursorX, CursorY, CursorZ))) (Replace Existing Orders)
That should work. For the attaching of a region, there is no direct native to do that, but you could have a periodic trigger that constantly moves the region to the position of your mouse, or better yet just move it there only when you need it :)
Hello.
There is an issue with my camera for a Third Person Shooter map. It follows well on flat floors. HOWEVER, as it nears mountains or tall objects, it travels up the object instead of staying with my character.
Now, my question is: Is there a way to prevent the camera from moving up tall objects, and make it stick to the character?
Thank you!
EDIT: I have another question. Is it possible to order an unit to move with a click of the left mouse button instead of the right one?
EDIT 2: Another. Is there a way to attach a region/point to your mouse cursor?
Camera - Turn camera height displacement Off for player 1
Camera - Turn camera height smoothing Off for player 1
Not sure about your camera issue, but for the first question you could make a trigger like this one:
Events
UI - Player Any Player clicks Left mouse button Down.
Local Variables
CursorX = (Mouse X position clicked in the world) <Real>
CursorY = (Mouse Y position clicked in the world) <Real>
CursorZ = (Mouse Z position clicked in the world) <Real>
Conditions
Actions
Unit - Order all units in (Selected units for player (Triggering player)) to ( Move targeting (Point(CursorX, CursorY, CursorZ))) (Replace Existing Orders)
That should work. For the attaching of a region, there is no direct native to do that, but you could have a periodic trigger that constantly moves the region to the position of your mouse, or better yet just move it there only when you need it :)
EDIT: Fixed lining...
Thank you all! This helped me greatly in customizing my map! :)