• 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.

[General] How to rotate camera with unit?

Status
Not open for further replies.
Level 11
Joined
Jan 23, 2015
Messages
788
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.
 
Level 21
Joined
Nov 4, 2013
Messages
2,017
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.
 
Level 21
Joined
Nov 4, 2013
Messages
2,017
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.
Top