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

A little nooby question

Status
Not open for further replies.
Level 15
Joined
Mar 8, 2009
Messages
1,651
How do i bind game camera to a unit so it follows him and always faces the same directiobn as unit? (generally same type of view like in WoW or any other mmorpg)
 
Level 3
Joined
Mar 25, 2009
Messages
32
u need to set something like camera Z, distance between object, camera angle, just look 4 your self at trigger that relate on camera.
 
Level 2
Joined
May 17, 2009
Messages
18
If im right you want it to stay locked on the unit, and the camera to turn when the unit does? If so, heres the GUI

  • Camera
    • Events
      • Time - Every 0.01 seconds of game time
    • Conditions
    • Actions
      • Camera - Lock camera target for Player 1 (Red) to Peasant 0000 <gen>, offset by (0.00, 0.00) using Default rotation
      • Camera - Set Player 1 (Red)'s camera Rotation to (Facing of Peasant 0000 <gen>) over 0.00 seconds
The second action makes it so it sets the cameras rotation to whatever way the unit is facing.
 
Level 15
Joined
Mar 8, 2009
Messages
1,651
but camer will still hand above the unit. i need hte camera to follow the unit, literally. the camera must always face the unit's back. i mean, the unit's back must always be in the center of the screen =)
 
Level 15
Joined
Mar 8, 2009
Messages
1,651
it locks the camera in Diablo manner. i need WoW manner, if thats more clear

EDIT: think i can try and copy the code from blizz's own race map... camera is locked on the car in the manner i need as i remember
 
Level 3
Joined
Mar 25, 2009
Messages
32
did you found it? here the trigger
  • Camera - Set Camera Field(Timed)
there you can set what i told you before.
 
Status
Not open for further replies.
Top