• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Camera Help

Status
Not open for further replies.
Level 3
Joined
Jan 1, 2005
Messages
27
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
 
Level 8
Joined
Apr 3, 2004
Messages
507
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.
 
Status
Not open for further replies.
Top