Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.50

Description

Description:Sets custom camera view offset. All cameras, including the player view and editor cameras are affected by this.

All arguments, except for the custom parameter are optional, and default to 0.

If the camera is set behind the player, the player head will be invisible (as it normally is, when the player is in first person view).

Note: Frustrum offsets are not reset between missions, or editor restarts, and have to be reset manually.

Syntax

Syntax:setCamFrustumOffsets [custom, azimuth, pitch, roll, offset]
Parameters:
  • custom: Boolean - If set to false, resets the frustum.
  • azimuth: Number - Camera azimuth (optional, default: 0).
  • pitch: Number - Camera pitch (optional, default: 0).
  • roll: Number - Camera roll (optional, default: 0).
  • offset: Array - Offset in [x,y,z] (optional, default: [0,0,0]).
Return Value:Array

Examples

Examples:
for "_i" from 0 to 360 step 5 do {
  setCamFrustumOffsets [true,0,_i,_i*2];
  sleep .001;
};

Additional Information

See also: setCamFrustum, camFrustum, camFrustumDir
Multiplayer:
Problems:

Notes