• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 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!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

[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,020
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,020
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