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

Make the camera follow Unit Rotation

Status
Not open for further replies.
Level 37
Joined
Mar 6, 2006
Messages
9,240
It's a good idea to set

Camera - Change camera smoothing factor to 2500.00

at map initialization. Play around with that value.

Then:

  • RotateCamera
    • Events
      • Time - Every 0.10 seconds of game time
    • Conditions
    • Actions
      • Set UnitFacing = (Unit)
      • Camera - Set Player 1 (Red)'s camera Rotation to UnitFacing over 0.10 seconds
 
Level 4
Joined
Oct 18, 2007
Messages
99
It's a good idea to set

Camera - Change camera smoothing factor to 2500.00

at map initialization. Play around with that value.

Then:

  • RotateCamera
    • Events
      • Time - Every 0.10 seconds of game time
    • Conditions
    • Actions
      • Set UnitFacing = (Unit)
      • Camera - Set Player 1 (Red)'s camera Rotation to UnitFacing over 0.10 seconds

I made it every 1 second. works great
 
Status
Not open for further replies.
Top