HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

3rd person camera

09-14-2004, 10:54 PM#1
Arkidas
Is it possible to create multiplayer friendly 3rd person camera with arrow key movement? Then I want to have it so when you type '-3rd' then you go in 3rd person camera mode and will be able to use arrow keys. and then when you type '-cam' it will og back to normal camera and disable arrow key movement. Okay thats all I wanna know, thanks.
09-15-2004, 07:24 AM#2
light_blade
yes, it is possible

//Name: 3rd cam on
Event
-player chat message "-3rd"
Condition
//well you can have whatever condition you like, or just leave it blank
Action
// use whatever ways you like to "PAN" to a unit

//Name: lock cam on
Event
-player chat message "-cam"
Condition
//well you can have whatever condition you like, or just leave it blank
Action
// use whatever ways you like to "lock" to a unit
09-15-2004, 09:46 PM#3
Gandalf2349
http://www.wc3campaigns.com/forumdisplay.php?f=56

I'm pretty sure a modified FPS mod might work. Arrow key movement isn't simple. You probably want to look for a tutorial. Basically you want to detect when they press and release the keys, and set boolean variables for pressed and released. Then you have to do a periodic trigger that checks whether they are pressed and then move the unit forward slightly. For the 3rd person camera you want to Lock camera orientation on unit, and every .10 seconds or so rotate the camera to the facing of unit over .09 seconds. To return to 1st person just use the action, Restore game camera, or something. I can go into more detail on the arrow keys later, but right now i have things to see, people to do...