Warcraft III resources & community, 2003–2006 · archived

Camera Help

2 posts
#1

Camera Help

hi im going for a map that you are a man and you must buy food and drink.


-i don´t know how to make camera lock nearer the unit

-i don´t know how to steer the unit with keyboard buttons

-plz help and i´ll give credits in the map
#2
I'll give you some hints. The camera functions are all under "Camera". The ones that you want are locking the camera position and rotation to the unit's position and rotation.

The arrow key movement uses Player events, very intuitively named after the arrow keys themselves. You'll need to do a little math to calculate how far ahead or behind the unit you want it to move, and how far to the right or left you want it to turn.