lightAttachObject: Difference between revisions
Jump to navigation
Jump to search
Waffle SS. (talk | contribs) No edit summary |
m (template:command argument fix) |
||
Line 10: | Line 10: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Attach light to given object at given position on object. |= | | Attach light to given object at given position on object. |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| light '''lightAttachObject''' [object, position] |= | | light '''lightAttachObject''' [object, position] |SYNTAX= | ||
|p1= light: [[Object]] |= | |p1= light: [[Object]] |PARAMETER1= | ||
|p2= [object, position]: [[Array]] |= | |p2= [object, position]: [[Array]] |PARAMETER2= | ||
|p3= object: [[Object]] |= | |p3= object: [[Object]] |PARAMETER3= | ||
|p4= position: [[Array]] - format [[Position]] |= | |p4= position: [[Array]] - format [[Position]] |PARAMETER4= | ||
| [[Nothing]] |= | | [[Nothing]] |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1=<code>myLight '''lightAttachObject''' [myVehicle, [-0.5,-0.25,1]];</code>|= | |x1=<code>myLight '''lightAttachObject''' [myVehicle, [-0.5,-0.25,1]];</code>|= | ||
| [[setLightAmbient]], [[setLightBrightness]], [[lightDetachObject]], [[setLightColor]], [[setLightIntensity]], [[setLightAttenuation]], [[setLightUseFlare]], [[setLightFlareSize]], [[setLightFlareMaxDistance]], [[setLightDayLight]], [[attachObject]], [[attachTo]], [[attachedObjects]], [[attachedTo]], [[waypointAttachVehicle]], [[waypointAttachedVehicle]], [[triggerAttachVehicle]], [[attachedObject]] |= | | [[setLightAmbient]], [[setLightBrightness]], [[lightDetachObject]], [[setLightColor]], [[setLightIntensity]], [[setLightAttenuation]], [[setLightUseFlare]], [[setLightFlareSize]], [[setLightFlareMaxDistance]], [[setLightDayLight]], [[attachObject]], [[attachTo]], [[attachedObjects]], [[attachedTo]], [[waypointAttachVehicle]], [[waypointAttachedVehicle]], [[triggerAttachVehicle]], [[attachedObject]] |SEEALSO= | ||
}} | }} |
Revision as of 14:42, 7 April 2019
Description
- Description:
- Attach light to given object at given position on object.
- Groups:
- Uncategorised
Syntax
- Syntax:
- light lightAttachObject [object, position]
- Parameters:
- light: Object
- [object, position]: Array
- object: Object
- position: Array - format Position
- Return Value:
- Nothing
Examples
- Example 1:
myLight lightAttachObject [myVehicle, [-0.5,-0.25,1]];
Additional Information
- See also:
- setLightAmbientsetLightBrightnesslightDetachObjectsetLightColorsetLightIntensitysetLightAttenuationsetLightUseFlaresetLightFlareSizesetLightFlareMaxDistancesetLightDayLightattachObjectattachToattachedObjectsattachedTowaypointAttachVehiclewaypointAttachedVehicletriggerAttachVehicleattachedObject
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
Notes
- Posted on Dec 1, 2006 - 16:42
- Feersum
-
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]];
Bottom Section
- Posted on March 31, 2015 - 04:49 (UTC)
- Waffle SS.
- When attached, movement is slow to update (jumpy). Use attachTo when attaching a light to moving objects.
Categories:
- Scripting Commands
- Introduced with Arma version 1.00
- Arma: New Scripting Commands
- Arma: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands: Local Effect
- Scripting Commands OFP Elite
- Scripting Commands ArmA
- Scripting Commands ArmA2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters