switchLight: 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|SWITCHLIGHT]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|SWITCHLIGHT]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|SWITCHLIGHT]]
[[Category:Scripting Commands ArmA|SWITCHLIGHT]]
 
 
<h2 style="color:#000066">'''''lamppost'' switchLight ''mode'''''</h2>
 
 
'''Operand types:'''
 
'''lamppost:''' [[Object]]
 
'''mode:''' [[String]]


'''Type of returned value:'''
| ofp |= Game name


[[Nothing]]
|1.00|= Game version
 
____________________________________________________________________________________________
'''Description:'''
 
Controls lamppost '''mode'''.
 
'''Mode''' may be:


| Controls lamppost mode. Mode may be:
* '''"ON"'''
* '''"ON"'''
* '''"OFF"'''
* '''"OFF"'''
* '''"AUTO"''' ( Lampost is on only during nighttime)
* '''"AUTO"''' ( Lampost is on only during nighttime)


"AUTO" is default.
Examples: ([[object]] 12345) switchLight "off" [[nearestObject]] [ [[player]], "Streetlamp"] switchLight "OFF"
Comments Use [[lightIsOn]] to check the status of a lamppost. |= Description
____________________________________________________________________________________________


'''"AUTO"''' is default.
| lamppost '''switchLight''' mode |= Syntax


|p1= lamppost: [[Object]] |= Parameter 1


'''Examples:'''
|p2= mode: [[String]] |= Parameter 2


([[object]] 12345) '''switchLight''' '''"off"'''
| [[Nothing]] |= Return value
____________________________________________________________________________________________


[[nearestObject]] [ [[player]], "Streetlamp"] '''switchLight''' '''"OFF"'''
|  |= See also


}}


'''Comments'''
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


Use [[lightIsOn]] to check the status of a lamppost.
<!-- Note Section END -->
</dl>
 
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|SWITCHLIGHT]]
[[Category:Scripting Commands OFP 1.96|SWITCHLIGHT]]
[[Category:Scripting Commands OFP 1.46|SWITCHLIGHT]]
[[Category:Scripting Commands ArmA|SWITCHLIGHT]]

Revision as of 00:56, 2 August 2006

Hover & click on the images for description

Description

Description:
Controls lamppost mode. Mode may be:
  • "ON"
  • "OFF"
  • "AUTO" ( Lampost is on only during nighttime)
"AUTO" is default. Examples: (object 12345) switchLight "off" nearestObject [ player, "Streetlamp"] switchLight "OFF" Comments Use lightIsOn to check the status of a lamppost.
Groups:
Uncategorised

Syntax

Syntax:
lamppost switchLight mode
Parameters:
lamppost: Object
mode: String
Return Value:
Nothing

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