estimatedTimeLeft: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]2(\|.*)\]\]" to "{{GameCategory|arma2|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| ofp |Game name= | | ofp |Game name= | ||
Line 15: | Line 14: | ||
|gr3= Multiplayer |GROUP3= | |gr3= Multiplayer |GROUP3= | ||
| Sets the estimated time left in the game that is shown in the "Game in progress" screen or in the master browser. | | Sets the estimated time left in the game that is shown in the "Game in progress" screen or in the master browser. | ||
{{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= | {{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= | ||
| [[estimatedTimeLeft]] seconds |SYNTAX= | | [[estimatedTimeLeft]] seconds |SYNTAX= | ||
Line 26: | Line 23: | ||
| [[Nothing]] |RETURNVALUE= | | [[Nothing]] |RETURNVALUE= | ||
|x1= <code>[[estimatedTimeLeft]] 600; {{cc|10 min}}</code> |EXAMPLE1= | |x1= <code>[[estimatedTimeLeft]] 600; {{cc|10 min}}</code> |EXAMPLE1= | ||
Line 32: | Line 28: | ||
|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: | ||
<code>[[estimatedTimeLeft]] param1;</code>|EXAMPLE2= | <code>[[estimatedTimeLeft]] param1;</code>|EXAMPLE2= | ||
| [[estimatedEndServerTime]], [[serverTime]] |SEEALSO= | | [[estimatedEndServerTime]], [[serverTime]] |SEEALSO= |
Revision as of 01:16, 17 January 2021
Description
- Description:
- Sets the estimated time left in the game that is shown in the "Game in progress" screen or in the master browser.
- Groups:
- TimeMission InformationMultiplayer
Syntax
- Syntax:
- estimatedTimeLeft seconds
- Parameters:
- seconds: Number - estimated time in seconds (maximum 36000 (10 hours) since 1.69, 7200 (2 hours) before)
- Return Value:
- Nothing
Examples
- Example 1:
estimatedTimeLeft 600; // 10 min
- Example 2:
- OFP: 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
Notes
Bottom Section
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.34
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Command Group: Time
- Command Group: Mission Information
- Command Group: Multiplayer
- Scripting Commands: Global Effect
- Scripting Commands: Server Execution
- Scripting Commands OFP 1.46
- Scripting Commands OFP 1.96
- Scripting Commands OFP 1.99
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 3: Scripting Commands
- Take On Helicopters: Scripting Commands