lightIsOn: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands|LIGHTISON]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|LIGHTISON]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|LIGHTISON]]
[[Category:Scripting Commands ArmA|LIGHTISON]]
 
 
<h2 style="color:#000066"> '''lightIsOn ''lamppost'''''</h2>
 
 
'''Operand types:'''
 
'''lamppost:''' [[Object]]
 
'''Type of returned value:'''
 
[[String]]
 
'''Compatibility:'''


Added in version '''1.04'''
| ofp |= Game name


'''Description:'''
|1.04|= Game version
____________________________________________________________________________________________


Check if lampost is on (shining).
| Check if lampost is on (shining). Possible values are:
Examples: lightIsOn [[nearestObject]] [[[player]], "StreetLamp"] != "OFF" _it = lightIsOn [[object]] 159582 |= Description
____________________________________________________________________________________________


Possible values are:
| '''lightIsOn''' |= Syntax


* '''"ON"'''
|p1= lamppost: [[Object]] |= Parameter 1
* '''"OFF"'''
* '''"AUTO"''' (auto is only on during the night).


| [[String]] |= Return value
____________________________________________________________________________________________


'''Examples:'''
|  |= See also


'''lightIsOn''' [[nearestObject]] [[[player]], "StreetLamp"] != '''"OFF"'''
}}


_it = '''lightIsOn''' [[object]] 159582
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
</dl>


'''Comments:'''
<h3 style="display:none">Bottom Section</h3>
Old Notes (temporary):


Use [[switchLight]] to turn lamposts on and off.
Use [[switchLight]] to turn lamposts on and off.
[[Category:Scripting Commands|LIGHTISON]]
[[Category:Scripting Commands OFP 1.96|LIGHTISON]]
[[Category:Scripting Commands OFP 1.46|LIGHTISON]]
[[Category:Scripting Commands ArmA|LIGHTISON]]

Revision as of 00:57, 2 August 2006

Hover & click on the images for description

Description

Description:
lightIsOn
Groups:
Uncategorised

Syntax

Syntax:
String
Parameters:
lamppost: Object
Return Value:
Return value needed

Examples

Examples:
Example needed

Additional Information

See also:
See also needed

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

Bottom Section

Old Notes (temporary):

Use switchLight to turn lamposts on and off.