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


Introduced in

Version:3.9.1

Description

Description:

Sets the currently active mode for a marker light and activates the light. The special "OFF" mode is used to deactivate the light. Resets the position in a time sequence (for blinking mode).

For more information on marker lights configuration, see Class MarkerLights in the VBS Developer Reference.

Syntax

Syntax:markerLight setMarkerLightMode className
Parameters:
  • markerLight: Object - Marker light.
  • className: String - Class name.
Return Value:Nothing

Examples

Examples:
_beacon = "vbs_xx_ir20_blk" createVehicle (getPos player);
_lights = getMarkerLights _beacon;

(_lights select 0) setMarkerLightMode "ir_strobe";
(_lights select 0) setMarkerLightMode "ir_pulse";
(_lights select 0) setMarkerLightMode "off";

hint format ["Mode is: %1", getMarkerLightMode (_lights select 0)];

Additional Information

See also: getMarkerLights, getMarkerLightMode
Multiplayer:
Problems:

Notes






Posted on Apr 12, 2016
Note
Objects such as IR strobes and vehicles have marker lights which can be used to represent small lights such as indicators. This command allows the scripter to switch between modes. For example, an IR strobe may have modes such as "flash" and "pulse".