setFog: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 5: Line 5:




<h2 style="color:#000066">'''''time'' setFog ''fog-level'''''</h2>
<h2 style="color:#000066">'''''time'' setFog ''fog'''''</h2>




Line 12: Line 12:
'''time:''' [[Number]]
'''time:''' [[Number]]


'''fog-level:''' [[Number]]
'''fog:''' [[Number]]


'''Type of returned value:'''
'''Type of returned value:'''
Line 20: Line 20:
'''Description:'''
'''Description:'''


Set '''fog-level''' smoothly during given '''time''' (in seconds).
Changes the '''fog''' smoothly during the given '''time''' (in seconds).


Zero time means immediate change.
A time of zero means there will be an immediate change.


Fog-level 0 is minimum fog, 1 is maximum fog.
A fog level of zero is minimum fog and a fog level of one is maximum fog.  





Revision as of 20:13, 4 July 2006


time setFog fog


Operand types:

time: Number

fog: Number

Type of returned value:

Nothing

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.


Example:

15 setFog 0.5


MP Note:

Has only local effect, so setFog random 1 results in different fog-levels on each client.