• 🏆 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!

Moving the camera angles

Status
Not open for further replies.
Level 3
Joined
Feb 12, 2005
Messages
22
Is it possible to make a camera that follows the eyes of a unit, so that the camera is always looking at the degree angle that the unit that the camera is locked onto's angle? If you could help that would be greatly apprectiated.
 
Level 10
Joined
Jul 14, 2004
Messages
463
1. Lock camera target to unit

2. Build following trigger:
Events
-Periodic Event - every 0.1 sconds of game-time

Actions
-Set Camera field - Set camera's angle to facing angle of [unit the camera target is locked to] over 0.4 seconds


Of course you can change the times...
 
Status
Not open for further replies.
Top