setFog: 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|SETFOG]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|SETFOG]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|SETFOG]]
[[Category:Scripting Commands ArmA|SETFOG]]


| ofp |= Game name


<h2 style="color:#000066">'''''time'' setFog ''fog'''''</h2>
|1.00|= Game version
____________________________________________________________________________________________


| Changes the fog smoothly during the given time (in seconds). A time of zero means there will be an immediate change. A fog level of zero is minimum fog and a fog level of one is maximum fog. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| time '''setFog''' fog |= Syntax


'''time:''' [[Number]]
|p1= time: [[Number]] |= Parameter 1


'''fog:''' [[Number]]
|p2= fog: [[Number]] |= Parameter 2


'''Type of returned value:'''
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>15 setFog 0.5</pre> |= Example 1
____________________________________________________________________________________________


[[Nothing]]
|  |= See also


'''Description:'''
}}


Changes the '''fog''' smoothly during the given '''time''' (in seconds).
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


A time of zero means there will be an immediate change.
<!-- Note Section END -->
</dl>


A fog level of zero is minimum fog and a fog level of one is maximum fog.
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Scripting Commands|SETFOG]]
 
[[Category:Scripting Commands OFP 1.96|SETFOG]]
'''Example:'''
[[Category:Scripting Commands OFP 1.46|SETFOG]]
 
[[Category:Scripting Commands ArmA|SETFOG]]
15 '''setFog''' 0.5
 
 
'''MP Note:'''
 
Has only local effect, so '''setFog random 1''' results in different '''fog-levels''' on each client.

Revision as of 00:12, 2 August 2006

Hover & click on the images for description

Description

Description:
Changes the fog smoothly during the given time (in seconds). A time of zero means there will be an immediate change. A fog level of zero is minimum fog and a fog level of one is maximum fog.
Groups:
Uncategorised

Syntax

Syntax:
time setFog fog
Parameters:
time: Number
fog: Number
Return Value:
Nothing

Examples

Example 1:
15 setFog 0.5

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