Arma 3 Scripting

Command in Lights

lightAttachObject

Also available as Markdown and JSON, or read the original wiki page.

Description

Attach light to given object at given position on object.

Syntax

light lightAttachObject [object, position]

Parameters:

Returns: Nothing

Examples

Example 1

myLight lightAttachObject [myVehicle, [-0.5,-0.25,1]];

See also

setLightAmbient · setLightBrightness · lightDetachObject · setLightColor · setLightIntensity · setLightAttenuation · setLightUseFlare · setLightFlareSize · setLightFlareMaxDistance · setLightDayLight · attachObject · attachTo · attachedObjects · attachedTo · waypointAttachVehicle · waypointAttachedVehicle · triggerAttachVehicle · attachedObject

Community notes

Waffle SS.

When attached, movement is slow to update (jumpy). Use attachTo when attaching a light to moving objects.