setTimeMultiplier: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Added Scripting Commands Arma 3)
m (Text replacement - "\|game([0-9]) ?= (.+) \|version([0-9]) ?= (.+) " to "|game$1= $2 |version$3= $4 ")
(36 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma3 |= Game name
|game1= arma3
|version1= 1.26


|1.26|= Game version
|eff= global
____________________________________________________________________________________________


| Sets a time multiplier for in-game time. |= Description
|gr1= Time
____________________________________________________________________________________________


| '''setTimeMultiplier''' value|= Syntax
|gr2= Mission Information


|p1= value: [[Number]]. |= Parameter 1
|gr3= Environment


|serverExec= server


| [[Nothing]] |= RETURNVALUE
|descr= Sets a time multiplier for in-game time. The command range is capped at 0.1 - 120 to avoid performance problems.


|s1= '''setTimeMultiplier''' value


|x1= <code>[[setTimeMultiplier]] 60;</code> |= Example 1
|p1= value: [[Number]] - has to be in range from 0.1 to 120
|x2= <code>[[setTimeMultiplier]] 0.5;</code> |= Example 2


____________________________________________________________________________________________
|r1= [[Nothing]]


|[[timeMultiplier]], [[skipTime]], [[setAccTime]], [[accTime]], [[time]], [[serverTime]], [[date]], [[daytime]]  |= SEEALSO
|x1= <code>[[setTimeMultiplier]] 60;</code>


|mp= Server-side only in multi-player and it works in single-player as well.|= MPBEHAVIOUR
|x2= <code>[[setTimeMultiplier]] 0.5;</code>
____________________________________________________________________________________________
 
|seealso= [[timeMultiplier]], [[skipTime]], [[setAccTime]], [[accTime]], [[time]], [[serverTime]], [[date]], [[daytime]]
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Multiplayer|{{uc:{{PAGENAME}}}}]]
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on September 23, 2014 - 02:54 (UTC)</dd>
<dt class="note">[[User:Benargee|Benargee]]</dt>
<dd class="note">
Setting this value too high will cause performance issues. (A3 1.28)
</dd>
</dl>
<!-- DISCONTINUE Notes -->

Revision as of 16:51, 3 May 2021

Hover & click on the images for description

Description

Description:
Sets a time multiplier for in-game time. The command range is capped at 0.1 - 120 to avoid performance problems.
Groups:
TimeMission InformationEnvironment

Syntax

Syntax:
setTimeMultiplier value
Parameters:
value: Number - has to be in range from 0.1 to 120
Return Value:
Nothing

Examples

Example 1:
setTimeMultiplier 60;
Example 2:
setTimeMultiplier 0.5;

Additional Information

See also:
timeMultiplierskipTimesetAccTimeaccTimetimeserverTimedatedaytime

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