Author Topic: Rotating the third person view?  (Read 1246 times)

I am in a desperate need for a piece of code that rotates the third person view by 180 degrees so you are looking at your character from the front instead of back. It can be a playertype, console command, script or anything. I just really need this. No. I am not trying to be cheating bastard in minigames. The rear view mirror is for that. I have a legit use for this.

I'll look into it but no guarantees.

Alright, I found the function setOrbitMode, but I am utterly lost as to how it works.  Its a function on the cameraObject, so for instance:

Code: [Select]
findclientbyname("Demian").camera.setOrbitMode(orbitObject, transform, minDistance, maxDistance, curDistance,
ownClientObject);

You should probably take a look at the Appendix to decipher it.

http://www-rohan.sdsu.edu/~stewart/GPGT/Appendix%20A%20-%20Quick%20References.pdf
« Last Edit: December 23, 2010, 05:36:38 PM by Gadgethm »

Page 46 explains it? I'm not a scripter so I don't really know what to do with this, but I'll try.

This is basically exactly what I was trying to do with the 2D player, except by 90 degrees - impossible for the same reason.

There's a vertical tilt option but no horizontal tilt, so you can't do this unless you want your view to be upside down...

setOrbitMode might do it, but for a camera not a player type.

Upside down is fine by me. Is it possible?

Edit: Never mind. A new player type with cameratilt set to 3.1 did the trick.
« Last Edit: December 24, 2010, 04:06:10 AM by Demian »