lightAttachObject

From Bohemia Interactive Community
Revision as of 16:45, 15 August 2022 by Lou Montana (talk | contribs) (Some wiki formatting)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Attach light to given object at given position on object.
Groups:
Lights

Syntax

Syntax:
light lightAttachObject [object, position]
Parameters:
light: Object
object: Object
position: Array format Position
Return Value:
Nothing

Examples

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

Additional Information

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

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
Feersum - c
Posted on Dec 01, 2006 - 16:42 (UTC)
Light can be created with command createVehicleLocal with special vehicle class "#lightpoint"
for example:
_light = "#lightpoint" createVehicleLocal pos; _light setLightBrightness 1.0; _light setLightAmbient [0.0, 1.0, 0.0]; _light setLightColor [0.0, 1.0, 0.0]; _light lightAttachObject [_object, [0,0,0]];
Waffle SS. - c
Posted on Mar 31, 2015 - 04:49 (UTC)
When attached, movement is slow to update (jumpy). Use attachTo when attaching a light to moving objects.