• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[General] How to rotate camera with unit?

Status
Not open for further replies.
You want to make the camera face the facing degree of the unit?

I think using
  • Camera - Rotate camera (Facing degree of Unit) degrees around (Position of Unit) for (Owner of Unit) over 1.00 seconds
every 0.3 seconds will do the job.
 
You want to make the camera face the facing degree of the unit?

I think using
  • Camera - Rotate camera (Facing degree of Unit) degrees around (Position of Unit) for (Owner of Unit) over 1.00 seconds
every 0.3 seconds will do the job.

Why even using a position that leaks?
Use this:

  • Camera - Set Player 1 (Red)'s camera Rotation to (Facing of Your Hero) over 0.25 seconds
Where the time in seconds is the rapidity at which the camera will rotate. The lower the time, the faster the rotation.
 
I've just shown the action, but he will use a variable for the point and then clear the leak..

The fact is: "Why even using a point variable that is not needed?"
You'd need 3 commands, one to set the point variable, one for the camera and one for removing the location. Why doing that when we can directly use one command?
Simplifying is always the better choice.
 
Status
Not open for further replies.
Back
Top