estimatedTimeLeft: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|=GROUP1" to "|GROUP1=")
m (Text replacement - "(\|[pr][0-9]+ *= *[^-]+) *- *E([a-z])" to "$1 - e$2")
 
(29 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| ofp |Game name=
|game1= ofp
|version1= 1.35


|1.34|Game version=
|game2= ofpe
|version2= 1.00


|eff= global |Multiplayer Effects=
|game3= arma1
|version3= 1.00


|serverExec= server |Server Execution=
|game4= arma2
|version4= 1.00


|gr1= Time |GROUP1=
|game5= arma2oa
|gr2= Mission Information|GROUP2=
|version5= 1.50
____________________________________________________________________________________________


| Sets the estimated time left in the game that is shown in the "Game in progress" screen or in the master browser.
|game6= tkoh
{{Informative | This command will force the server to broadcast [[serverTime]] to all clients without waiting for the next broadcast window (usually every 5 minutes).}} |DESCRIPTION=
|version6= 1.00
____________________________________________________________________________________________


| [[estimatedTimeLeft]] seconds |SYNTAX=
|game7= arma3
|version7= 0.50


|p1= seconds: [[Number]] - estimated time in seconds (maximum 36000 (10 hours) since {{GVI|arma3|1.69}}, 7200 (2 hours) before) |PARAMETER1=
|eff= global


| [[Nothing]] |RETURNVALUE=
|serverExec= server
____________________________________________________________________________________________
 
|x1= <code>[[estimatedTimeLeft]] 600; {{cc|10 min}}</code> |EXAMPLE1=


|x2= '''OFP:''' for missions with a hard set limit adjusted via ''[[Description.ext#titleParam.25.2C_valuesParam.25.2C_defValueParam.25.2C_textParam.25|param1]]'', the following example can be used in the [[Event Scripts|init.sqs]] file:
|gr1= Time
<code>[[estimatedTimeLeft]] param1;</code>|EXAMPLE2=
____________________________________________________________________________________________


| [[estimatedEndServerTime]], [[serverTime]] |SEEALSO=
|gr2= Mission Information
}}
 
|gr3= Multiplayer
 
|descr= Sets the estimated time left in the game that is shown in the "Game in progress" screen or in the master browser.
{{Feature|informative|This command will force the server to broadcast [[serverTime]] to all clients without waiting for the next broadcast window (usually every 5 minutes).}}
 
|s1= [[estimatedTimeLeft]] seconds
 
|p1= seconds: [[Number]] - estimated time in seconds. Maximum value:
* Prior to {{arma3}} v1.70: 7200 seconds (2 hours)
* Since {{arma3}} v1.70: 36000 (10 hours)


<h3 style="display:none">Notes</h3>
|r1= [[Nothing]]
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|x1= <sqf>estimatedTimeLeft 600; // 10 min</sqf>
</dl>


<h3 style="display:none">Bottom Section</h3>
|x2= '''{{ofp}}:''' for missions with a hard set limit adjusted ''via'' {{Link|Description.ext#param1/param2|param1}}, the following example can be used in the [[Event Scripts#init.sqs|init.sqs]] file:
<sqs>estimatedTimeLeft param1</sqs>


[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
|seealso= [[estimatedEndServerTime]] [[serverTime]]
[[Category:Scripting Commands OFP 1.46|{{uc:{{PAGENAME}}}}]]
}}
[[Category:Scripting Commands OFP 1.96|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Armed Assault|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]

Latest revision as of 14:06, 8 November 2023

Hover & click on the images for description

Description

Description:
Sets the estimated time left in the game that is shown in the "Game in progress" screen or in the master browser.
This command will force the server to broadcast serverTime to all clients without waiting for the next broadcast window (usually every 5 minutes).
Groups:
TimeMission InformationMultiplayer

Syntax

Syntax:
estimatedTimeLeft seconds
Parameters:
seconds: Number - estimated time in seconds. Maximum value:
  • Prior to Arma 3 v1.70: 7200 seconds (2 hours)
  • Since Arma 3 v1.70: 36000 (10 hours)
Return Value:
Nothing

Examples

Example 1:
estimatedTimeLeft 600; // 10 min
Example 2:
Operation Flashpoint: for missions with a hard set limit adjusted via param1, the following example can be used in the init.sqs file:
estimatedTimeLeft param1

Additional Information

See also:
estimatedEndServerTime serverTime

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