estimatedTimeLeft: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|ESTIMATEDTIMELEFT]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|ESTIMATEDTIMELEFT]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|ESTIMATEDTIMELEFT]]
[[Category:Scripting Commands ArmA|ESTIMATEDTIMELEFT]]


| ofp |= Game name


<h2 style="color:#000066">'''estimatedTimeLeft ''timeLeft'''''</h2>
|1.34|= Game version


|eff= global |= Effects in MP
____________________________________________________________________________________________


'''Operand types:'''
| Sets the "time left" value that is shown in the "Game in Progress" screen during multiplayer sessions. This command works in MP only.If you set param1, param2 or following in the mission's description.ext, you can use those values instead of time. |= Description
____________________________________________________________________________________________


'''timeLeft:''' [[Number]]
| '''estimatedTimeLeft''' time |= Syntax


'''Type of returned value:'''
|p1= time: [[Number]] - estimated time in seconds, or one of {param1, param2, ...} |= Parameter 1


[[Nothing]]
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>?("OBJ1" objectStatus "DONE") : estimatedTimeLeft 600</pre> |= Example 1
____________________________________________________________________________________________


'''Compatibility:'''
|  |= See also


Added in version '''1.34'''
}}


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


Estimated time left in the game.
<!-- Note Section END -->
</dl>


Using this function, designer can provide timeleft estimate that is shown in "Game in progress" screen or in master browser.
<h3 style="display:none">Bottom Section</h3>


For missions with hard set limit adjusted via '''Param1''', following example can be used in '''''init.sqs'''''.
[[Category:Scripting Commands|ESTIMATEDTIMELEFT]]
 
[[Category:Scripting Commands OFP 1.96|ESTIMATEDTIMELEFT]]
 
[[Category:Scripting Commands OFP 1.46|ESTIMATEDTIMELEFT]]
'''Example:'''
[[Category:Scripting Commands ArmA|ESTIMATEDTIMELEFT]]
 
'''estimatedTimeLeft''' Param1

Revision as of 11:08, 2 August 2006

Hover & click on the images for description

Description

Description:
Sets the "time left" value that is shown in the "Game in Progress" screen during multiplayer sessions. This command works in MP only.If you set param1, param2 or following in the mission's description.ext, you can use those values instead of time.
Groups:
Uncategorised

Syntax

Syntax:
estimatedTimeLeft time
Parameters:
time: Number - estimated time in seconds, or one of {param1, param2, ...}
Return Value:
Nothing

Examples

Example 1:
?("OBJ1" objectStatus "DONE") : estimatedTimeLeft 600

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