HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

3rd person camera

07-28-2007, 05:20 AM#1
The Elite
Hello im making a campaign and i want to have a 3rd person camera and i have no idea how do make it. So i need help. What i want is 3rd person camera that follows the hero and has the same angle as him/her. eg
*Hero* moves diagonaly forward to the left so the camera follows him and changes viewing angle so it is facing the same way as *hero*
I'd rather it be in GUI but if not could whoever posted the code explain what each line does please. T.Y in advance
07-28-2007, 05:48 AM#2
revolve
I think it's pretty simple, just make camera following unit using trigger. Also, that may be very, odd, when gaming, so you might want to add the normal camera as option too.
07-28-2007, 06:10 AM#3
The Elite
care to give code?
07-28-2007, 08:13 AM#4
Pyrogasm
Trigger:
Camera - Lock (Player 1) camera target to Some_Unit
I believe.
07-28-2007, 08:20 AM#5
The Elite
yes but would that change angel as the hero changed angel?
07-28-2007, 08:29 AM#6
Pyrogasm
It locks the center of the camera to the unit. You can change the angle and/or anything else you need to accordingly.
07-28-2007, 09:30 AM#7
Thunder_Eye
Trigger:
Camera
Collapse Events
Time - Every 0.50 seconds of game time
Conditions
Collapse Actions
Camera - Set Player 1 (Red)'s camera Rotation to (Facing of Player1Hero) over 0.50 seconds
Is that what you want?
07-28-2007, 09:36 AM#8
The Elite
yeah ty and rep