estimatedTimeLeft: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(limit is 36000 now)
m (template:command argument fix)
(6 intermediate revisions by 3 users not shown)
Line 2: Line 2:
____________________________________________________________________________________________
____________________________________________________________________________________________


| ofp |= Game name
| a3 |= Game name


|1.34|= Game version
|1.34|= Game version


|eff= global |= Effects in MP
|eff= global |Multiplayer Effects=


|exec= server |=
|exec= server |=
____________________________________________________________________________________________
____________________________________________________________________________________________


| Sets the estimated time left in the game. Using this function the designer can provide a "time left" estimate that is shown in the "Game in progress" screen or in the master browser. This command works in MP only and must be executed on the server only.|= 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 also force the server to broadcast [[serverTime]] to all clients ASAP, without waiting for the next broadcast window, which is about every 5 minutes.|DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''estimatedTimeLeft''' seconds|= Syntax
| '''estimatedTimeLeft''' seconds|SYNTAX=


|p1= seconds: [[Number]] - estimated time in seconds (7200 sec max, since Arma 3 v1.69 the limit is 36000 seconds). |= Parameter 1
|p1= seconds: [[Number]] - estimated time in seconds (7200 sec max, since {{GVI|arma3|1.69}} the limit is 36000 seconds). |PARAMETER1=


| [[Nothing]] |= Return value
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>[[estimatedTimeLeft]] 600; //10 min</code>  |= Example 1
|x1= <code>[[estimatedTimeLeft]] 600; //10 min</code>  |EXAMPLE1=


|x2= For missions with a hard set limit adjusted via Param1, the following example can be used in the init.sqs file:<code>[[estimatedTimeLeft]] Param1;</code>|= Example 2
|x2= For missions with a hard set limit adjusted via Param1, the following example can be used in the init.sqs file:<code>[[estimatedTimeLeft]] Param1;</code>|EXAMPLE2=
____________________________________________________________________________________________
____________________________________________________________________________________________


|mp= Server execution |=
|mp= Has to be executed on the server. Effect is global. |=


| [[estimatedEndServerTime]], [[serverTime]] |= See also
| [[estimatedEndServerTime]], [[serverTime]] |SEEALSO=


}}
}}

Revision as of 12:08, 5 August 2019

-wrong parameter ("a3") defined!-[[:Category:Introduced with a3 version 1.34|1.34]]
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 also force the server to broadcast serverTime to all clients ASAP, without waiting for the next broadcast window, which is about every 5 minutes.
Multiplayer:
Has to be executed on the server. Effect is global.
Groups:
Uncategorised

Syntax

Syntax:
estimatedTimeLeft seconds
Parameters:
seconds: Number - estimated time in seconds (7200 sec max, since Arma 3 logo black.png1.69 the limit is 36000 seconds).
Return Value:
Nothing

Examples

Example 1:
estimatedTimeLeft 600; //10 min
Example 2:
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:
estimatedEndServerTimeserverTime

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

[[Category:Introduced with a3 version 1.34]][[ Category: a3: New Scripting Commands | ESTIMATEDTIMELEFT]][[ Category: a3: Scripting Commands | ESTIMATEDTIMELEFT]]

Notes

Bottom Section