setTimeMultiplier: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
 
(57 intermediate revisions by 14 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


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


|1.25|= Game version
|eff= global
____________________________________________________________________________________________


| |= Description
|gr1= Time
____________________________________________________________________________________________


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


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


|p2= |= PARAMETER2
|serverExec= server


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


| [[Nothing]] |= RETURNVALUE
|s1= [[setTimeMultiplier]] value


|p1= value: [[Number]] - has to be in range from 0.1 to 120


|x1= <code>_this <nowiki>=</nowiki> [[setTimeMultiplier]] 1;</code> |= Example 1
|r1= [[Nothing]]


____________________________________________________________________________________________
|x1= <sqf>setTimeMultiplier 60;</sqf>


|[[TimeMultiplier]]  |= SEEALSO
|x2= <sqf>setTimeMultiplier 0.5;</sqf>


|mp= Server-side only in multi-player and it works in single-player as well.|= MPBEHAVIOUR
|seealso= [[timeMultiplier]] [[skipTime]] [[setAccTime]] [[accTime]] [[time]] [[serverTime]] [[date]] [[dayTime]]
____________________________________________________________________________________________
}}
}}


<h3 style='display:none'>Notes</h3>
{{Note
<dl class='command_description'>
|user= Hypoxic125
<!-- Note Section BEGIN -->
|timestamp= 20230214170734
 
|text= '''timeMultiplier = 24 / IRL Hours per Game Day'''
<!-- Note Section END -->
<br><br>
</dl>
Desired: 4 IRL Hours for Full In-Game Day
 
<br>
<h3 style='display:none'>Bottom Section</h3>
timeMultiplier = 24 / 4
[[Category:ArmA_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
<br>
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
timeMultiplier = 6
[[Category:Command_Group:_Multiplayer|{{uc:{{PAGENAME}}}}]]
}}

Latest revision as of 19:08, 14 February 2023

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:
timeMultiplier skipTime setAccTime accTime time serverTime date dayTime

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
Hypoxic125 - c
Posted on Feb 14, 2023 - 17:07 (UTC)
timeMultiplier = 24 / IRL Hours per Game Day

Desired: 4 IRL Hours for Full In-Game Day
timeMultiplier = 24 / 4
timeMultiplier = 6