estimatedTimeLeft: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Killzone Kid (talk | contribs) (description, example) |
||
Line 9: | Line 9: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Sets the "time left" | | 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 | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| '''estimatedTimeLeft''' seconds|= Syntax | | '''estimatedTimeLeft''' seconds|= Syntax | ||
|p1= seconds: [[Number]] - estimated time in seconds | |p1= seconds: [[Number]] - estimated time in seconds (Do not use value > 7200). |= Parameter 1 | ||
| [[Nothing]] |= Return value | | [[Nothing]] |= Return value | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= < | |x1= <code>[[estimatedTimeLeft]] 600; //10 min</code> |= Example 1 | ||
|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 | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|mp= | |mp= Server execution |= | ||
| | | [[estimatedEndServerTime]], [[serverTime]] |= See also | ||
}} | }} |
Revision as of 01:08, 30 July 2014
Description
- Description:
- 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.
- Multiplayer:
- Server execution
- Groups:
- Uncategorised
Syntax
- Syntax:
- estimatedTimeLeft seconds
- Parameters:
- seconds: Number - estimated time in seconds (Do not use value > 7200).
- 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
Notes
Bottom Section
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.34
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands: Global Effect
- Scripting Commands OFP 1.96
- Scripting Commands OFP 1.46
- Scripting Commands ArmA
- Command Group: Mission Information
- Scripting Commands ArmA2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters