Arma 3 Scripting

BIS_fnc_timeline_simulateCurves

  • Arma 3 v1.76

Function · Markdown · JSON · original wiki page

Description

Moves the objects animated by a timeline to the given point of the timeline. For every curve of the timeline (see BIS_fnc_timeline_getSimulatedCurves) the function:

In the Eden Editor, it also refreshes the curve's 3D drawing (BIS_fnc_richCurve_edenTick) and, if 3D icons are visible, draws an icon at the current position. Outside of Eden, once the curve reaches a key, the code stored in the key's "Event" variable is executed and the key's "reached" scripted event handler is called; each key does so only once (until the timeline loops).

The function is used internally by BIS_fnc_timeline_tick, which calls it every frame while the timeline is playing and not paused.

Syntax

[timeline, alpha, deltaTime] call BIS_fnc_timeline_simulateCurves

Parameters:

Returns: Nothing

Examples

Example 1

[myTimeline, 0.5, 0] call BIS_fnc_timeline_simulateCurves; // moves the timeline's objects to the middle of the timeline

See also

BIS_fnc_timeline_tick · BIS_fnc_timeline_play · BIS_fnc_timeline_getSimulatedCurves · BIS_fnc_timeline_setInterpMode · BIS_fnc_richCurve_setOrientationMode