BIS_fnc_timeline_init

From Bohemia Interactive Community
Revision as of 18:18, 20 June 2021 by Lou Montana (talk | contribs) (Text replacement - "\|s([0-9])= ([^ ]+) (\[\[call\]\]) ([^ ]+) " to "|s$1= $2 call $4 ")
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Initialized a timeline.
Execution:
call
Groups:
Timeline

Syntax

Syntax:
[timeline, initPosition, length, playRate, loop] call BIS_fnc_timeline_init
Parameters:
timeline: Object - The timeline object
initPosition: Number - (Optional, default timeline getVariable ["Pos", 0.0]) Initial position
length: Number - (Optional, default timeline getVariable ["Length", 10.0]) Length
playRate: Number - (Optional, default timeline getVariable ["PlayRate", 1.0]) Play rate
loop: Boolean - (Optional, default timeline getVariable ["Loop", false]) true - loop enabled, false - loop disabled
reverse: Boolean - (Optional, default timeline getVariable ["Reverse", false]) true - reverse, false - Do not reverse
playOnStart: Boolean - (Optional, default timeline getVariable ["PlayFromStart", false]) true - play at scenario start, false - Do not play at scenario start
destroyWhenFinished: Boolean - (Optional, default timeline getVariable ["DestroyWhenFinished", false]) true - Destroy when done , false - Do not destroy when done
Return Value:
Nothing

Examples

Example 1:
[timeline] call BIS_fnc_timeline_init;

Additional Information

See also:
BIS_fnc_timeline_deleted BIS_fnc_timeline_cleanup BIS_fnc_timeline_finish BIS_fnc_timeline_getAlpha BIS_fnc_timeline_getCurrentTime BIS_fnc_timeline_getInterpMode BIS_fnc_timeline_getLength BIS_fnc_timeline_getPlayFromStart BIS_fnc_timeline_getPlayRate BIS_fnc_timeline_getPlayTime BIS_fnc_timeline_getPosition BIS_fnc_timeline_getSimulatedCurves BIS_fnc_timeline_getStopTime BIS_fnc_timeline_getTimeLeft BIS_fnc_timeline_isFinished BIS_fnc_timeline_isLooping BIS_fnc_timeline_isPaused BIS_fnc_timeline_isPlaying BIS_fnc_timeline_play BIS_fnc_timeline_setInterpMode BIS_fnc_timeline_setLength BIS_fnc_timeline_setLoop BIS_fnc_timeline_setPause BIS_fnc_timeline_setPlayRate BIS_fnc_timeline_setPosition BIS_fnc_timeline_simulateCurves BIS_fnc_timeline_stop BIS_fnc_timeline_tick BIS_fnc_timeline_setReverse BIS_fnc_timeline_isReverse

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