lightAttachObject: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]OFP[ _]Elite *(\|.*)?\]\]" to "{{GameCategory|ofpe|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma1 |Game name= | | arma1 |Game name= | ||
Line 11: | Line 10: | ||
|eff= local |Multiplayer Effects= | |eff= local |Multiplayer Effects= | ||
| Attach light to given object at given position on object. |DESCRIPTION= | | Attach light to given object at given position on object. |DESCRIPTION= | ||
| light [[lightAttachObject]] [object, position] |SYNTAX= | | light [[lightAttachObject]] [object, position] |SYNTAX= | ||
Line 24: | Line 21: | ||
| [[Nothing]] |RETURNVALUE= | | [[Nothing]] |RETURNVALUE= | ||
|x1=<code>myLight [[lightAttachObject]] [myVehicle, [-0.5,-0.25,1]];</code> |EXAMPLE1= | |x1=<code>myLight [[lightAttachObject]] [myVehicle, [-0.5,-0.25,1]];</code> |EXAMPLE1= |
Revision as of 01:51, 17 January 2021
Description
- Description:
- Attach light to given object at given position on object.
- Groups:
- Lights
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 Armed Assault version 1.00
- ArmA: Armed Assault: New Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Command Group: Lights
- Scripting Commands: Local Effect
- Operation Flashpoint: Elite: Scripting Commands
- Arma 2: Scripting Commands
- Arma 3: Scripting Commands
- Take On Helicopters: Scripting Commands