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

Just wondering

Status
Not open for further replies.
Level 2
Joined
Jan 3, 2005
Messages
15
Just wondering how to make a camera follow 1 unit from behind and continue following from behind when the unit turns.

This function is used in several rpgs so if you know how to do this trigger this please post below.
 
Level 32
Joined
Oct 23, 2006
Messages
5,291
Camera actions are often difficult to use.

The best choice to learn how to manipulate them is to open a map that contains cinematics that you like and determine exactly how the cinematic triggers function, then try to either duplicate them in your own map.

[self="http://hiveworkshop.com/forums/showthread.php?t=7216"]Some helpful information can be found in Bob27's introductory cinematics tutorial.[/self]
 
First you need to lock the camera to some unit

Code:
Lock Camera
    Events
        Map initialization
    Conditions
    Actions
        Camera - Lock camera target for Player 1 (Red) to (Player1Hero), offset by (0.00, 0.00) using Default rotation
here I used "Player1Hero" as a variable, you can replace that with your unit

And this trigger makes sure the camera will face the same angle as the unit does:
Code:
Player1 Camera
    Events
        Time - Every 0.03 seconds of game time
    Conditions
    Actions
            Camera - Set Player 1's camera Rotation to (Facing of Player1Hero) over 0.00 seconds

I hope this helped
 
Level 7
Joined
Aug 10, 2004
Messages
185
I believe it keeps the same distance from the unit, even if the elevation changes, so no, I believe the camera would move back say if the unit was moving upward.
 
does any1 know how to get the camara to lock on but have this distance from the unit. This screen shows the distance i want:
 

Attachments

  • camdis.jpg
    camdis.jpg
    102 KB · Views: 138
Level 7
Joined
Aug 10, 2004
Messages
185
Perhaps you should try to make a camera that distance you want, and just use a trgiger to have it follow the unit.
 
Status
Not open for further replies.
Top