HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

3rd Person Camera Help

07-14-2005, 12:03 AM#1
Lazyeyedhobo
I have been working on an RPG map and have recently decided to make it be in 3rd person view. I looked around on this site to find some tutorials. They all had this trigger:

Camera - Set (Picked player)'s camera Rotation to (Facing of CameraTarget) over 0.20 seconds

Well it doesnt work on my computer. It says the variable "camera target" does not exist. Could anyone tell me what i am doing wrong or just point me to some tutorial that doesnt have this trigger in it?
Thanks
07-14-2005, 12:52 AM#2
Guest
you have to create the variable if it does not exist, and the camera thing is supposed to be set to locked unit facing angle with a periodic event of .1 or soemthing similar
07-14-2005, 01:21 AM#3
Lazyeyedhobo
I am sort of new to triggers. I mean I can do simple stuff like make a gate open or kill a unit but i never really learned about variables. Can anybody tell me how to make the variable?
07-14-2005, 03:11 PM#4
Guest
Goto General- Set Variable in the trigger editor, and click on edit variables, if u have aim my screen name is enh4nc3d if u want more direct help
07-14-2005, 09:10 PM#5
Guest
Here's a basic code... ^_^
Code:
-Camera-
    Events
        Time - Every 0.33 seconds of game time
    Conditions
    Actions
                Camera - Lock camera target for Player 1 (Red) to (the unit you want to follow), offset by (0.00, 0.00) using Default rotation
                Camera - Set Player 1 (Red)'s camera Rotation to (the unit you want to follow) over 0.50 seconds
                Camera - Set Player 1 (Red)'s camera Distance to target to 600 over 0.50 seconds
                Camera - Set Player 1 (Red)'s camera Angle of Attack to 340 over 0.50 seconds
                Camera - Set Player 1 (Red)'s camera Height Offset to 50.00 over 0.50 seconds

Im sure it works, i use codes like this in almost all my maps, tho they vary a bit and contain variables instead of specific numbers enabling me to make a controllable camera view with zoom in and out and angling functions controlled by the arrow keys on the keyboard.