estimatedTimeLeft: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<code>([^ ]*)\{\{cc\|([^ ]*)\}\}([^ ]*)<\/code>" to "<code>$1// $2$3</code>")
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
Line 43: Line 43:
|r1= [[Nothing]]
|r1= [[Nothing]]


|x1= <code>estimatedTimeLeft 600; // 10 min</code>
|x1= <sqf>estimatedTimeLeft 600; // 10 min</sqf>


|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:
|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:

Revision as of 10:22, 13 May 2022

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