setAccTime: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[[cC]ategory:[sS]cripting [cC]ommands\|[a-z A-Z 0-9_]+\]\]" to "")
m (formatting, named params)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| ofp
|game1= ofp


|1.00
|version1 = 1.00


|gr1= Time
|gr1= Time


| Set time acceleration coefficient. May be also used to slow time in cutscenes. This command does NOT work in multiplayer. accFactor is clamped to [1/128; 4].
|mp= Command is disabled in multiplayer


| '''setAccTime''' accFactor
|descr= Set simulation acceleration coefficient. May also be used to slow time in cutscenes.


|p1= accFactor: [[Number]]
|s1= [[setAccTime]] accFactor


| [[Nothing]]
|p1= accFactor: [[Number]] - Factor. Value is clamped to 1/128 - 4
 
|r1= [[Nothing]]
   
   
|x1= <pre>setAccTime 0.1</pre>
|x1= <code>[[setAccTime]] 0.1;</code>


| [[accTime]], [[setTimeMultiplier]], [[timeMultiplier]], [[useAudioTimeForMoves]]
| [[accTime]], [[setTimeMultiplier]], [[timeMultiplier]], [[useAudioTimeForMoves]]
Line 31: Line 33:
<!-- Note Section END -->
<!-- Note Section END -->
</dl>
</dl>


[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]

Revision as of 10:54, 5 February 2021

Hover & click on the images for description

Description

Description:
Set simulation acceleration coefficient. May also be used to slow time in cutscenes.
Multiplayer:
Command is disabled in multiplayer
Groups:
Time

Syntax

Syntax:
setAccTime accFactor
Parameters:
accFactor: Number - Factor. Value is clamped to 1/128 - 4
Return Value:
Nothing

Examples

Example 1:
setAccTime 0.1;

Additional Information

See also:
See also needed

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
Posted on August 4, 2006 - 10:58
hardrock
Notes from before the conversion: A good habit to get into is setting the accTime to 1 at the start of all cutscenes, in case the player is running at 4x speed when the scene starts.