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


Introduced in

Version:3.2

Description

Description:Sets the spotlight cone properties (the angle of the illuminated area).

Syntax

Syntax:light setLightFrustum [outer, inner]
Parameters:
  • light: Object - Light object (see Light Systems in VBS in the VBS3 Developer Reference).
  • outer: Number - Angle at which the light cone spreads out (range: 0 - 360, default: 60).
  • inner: Number - Angle at which the light cone closes in at the edges. Cannot be bigger than outer (optional, range: -1 - 360, default: 12). If negative, it is interpreted as the percentage of the outer  angle (for example, -0.5 means 50% of outer).
Return Value:Nothing

Examples

Examples:
_light1 setLightFrustum [60,30];
Effect of different outer parameters:


Effect of different inner parameters:

Additional Information

See also: getLightFrustum
Multiplayer:
Problems:

Notes