• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Make the camera follow Unit Rotation

Status
Not open for further replies.
Level 37
Joined
Mar 6, 2006
Messages
9,243
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