setLightIR: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Page creation)
 
m (fixed example and syntax)
Line 14: Line 14:
|descr= Sets lightpoint in infrared range.
|descr= Sets lightpoint in infrared range.


|s1= light [[setLightColor]] value
|s1= light [[setLightIR]] value


|p1= light: [[Object]]
|p1= light: [[Object]]


|p2= value: [[Boolean]] - [[true]] to make it visible ''only'' with night vision goggles, [[false]] to make it a normal light
|p2= value: [[Boolean]] - [[true|True]] to make it visible ''only'' with night vision goggles, [[false]] to make it a normal light


|r1= [[Nothing]]
|r1= [[Nothing]]


|x1= <code>myLight setLightColor [0.5,0,0]; {{cc|produces red}}</code>
|x1= <code>myLight '''setLightIR''' [[true]]; {{cc|Visible with NVG only!}}</code>


|seealso= [[setLightColor]], [[setLightAmbient]], [[setLightBrightness]], [[lightAttachObject]], [[lightDetachObject]], [[setLightIntensity]], [[setLightAttenuation]], [[setLightUseFlare]], [[setLightFlareSize]], [[setLightFlareMaxDistance]], [[setLightDayLight]]
|seealso= [[setLightColor]], [[setLightAmbient]], [[setLightBrightness]], [[lightAttachObject]], [[lightDetachObject]], [[setLightIntensity]], [[setLightAttenuation]], [[setLightUseFlare]], [[setLightFlareSize]], [[setLightFlareMaxDistance]], [[setLightDayLight]]
}}
}}

Revision as of 11:08, 28 May 2021

Hover & click on the images for description
Only available in Development branch(es) until its release with Arma 3 patch v2.06.

Description

Description:
Sets lightpoint in infrared range.
Groups:
Lights

Syntax

Syntax:
light setLightIR value
Parameters:
light: Object
value: Boolean - True to make it visible only with night vision goggles, false to make it a normal light
Return Value:
Nothing

Examples

Example 1:
myLight setLightIR true; // Visible with NVG only!

Additional Information

See also:
setLightColorsetLightAmbientsetLightBrightnesslightAttachObjectlightDetachObjectsetLightIntensitysetLightAttenuationsetLightUseFlaresetLightFlareSizesetLightFlareMaxDistancesetLightDayLight

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