setLightIR: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 $2")
m (Some wiki formatting)
 
(8 intermediate revisions by the same user not shown)
Line 14: Line 14:
|s1= light [[setLightIR]] value
|s1= light [[setLightIR]] value


|p1= light: [[Object]] - Object of class {{hl|"#lightpoint"}} or similar
|p1= light: [[Object]] - object of class {{hl|"#lightpoint"}} or similar


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


|x1= <code>myLight '''setLightIR''' [[true]]; {{cc|Visible with NVG only!}}</code>
|x1= <sqf>myLight setLightIR true; // visible with NVG only!</sqf>


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

Latest revision as of 18:39, 5 May 2022

Hover & click on the images for description

Description

Description:
Sets lightpoint in infrared range.
Groups:
Lights

Syntax

Syntax:
light setLightIR value
Parameters:
light: Object - object of class "#lightpoint" or similar
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:
setLightColor setLightAmbient setLightBrightness lightAttachObject lightDetachObject setLightIntensity setLightAttenuation setLightUseFlare setLightFlareSize setLightFlareMaxDistance setLightDayLight

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