Scripts / Rotating the camera along the plane of the screen

Author
Message
stv238
9
Years of Service
User Offline
Joined: 23rd Mar 2017
Location:
Posted: 30th Aug 2020 15:14
Hello, I would like to know how to rotate the camera along the plane of the screen, in whatever direction it is directed.

Attachments

AmenMoses
GameGuru Master
10
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 30th Aug 2020 19:24
Can you be a bit more descriptive?

Do you mean independently of the player?

You can use the camera override Lua commands to do this, they are listed in global.lua:
SetCameraOverride : SetCameraOverride ( i ) where i is 0-off, 1-position only, 2-angle only, 3-position and angle
SetCameraPosition : SetCameraPosition ( c, x, y, z ) where c should be zero and XYZ are 3D coordinates
SetCameraAngle : SetCameraAngle ( c, x, y, z ) where c should be zero and XYZ are euler angles
GetCameraPositionX : V = GetCameraPositionX ( c ) where V is the X coordinate of the specified camera
GetCameraPositionY : V = GetCameraPositionY ( c ) where V is the Y coordinate of the specified camera
GetCameraPositionZ : V = GetCameraPositionZ ( c ) where V is the Z coordinate of the specified camera
GetCameraAngleX : V = GetCameraAngleX ( c ) where V is the X angle of the specified camera
GetCameraAngleY : V = GetCameraAngleY ( c ) where V is the Y angle of the specified camera
GetCameraAngleZ : V = GetCameraAngleZ ( c ) where V is the Z angle of the specified camera
Been there, done that, got all the T-Shirts!
PM

Login to post a reply

Server time is: 2026-06-08 15:34:59
Your offset time is: 2026-06-08 15:34:59