{"name":"BIS_fnc_timeline_init","title":"BIS fnc timeline init","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_timeline_init","revid":348102,"updated":"2023-11-08T11:31:57Z","groups":["Timeline"],"status":"ok","games":{"arma3":"1.76"},"since":"arma3 1.76","arma3_since":"1.76","description":"Initialized a timeline.","syntaxes":[{"syntax":"[timeline, initPosition, length, playRate, loop] call BIS_fnc_timeline_init","params":[{"name":"timeline","type":"Object","description":"the timeline object","type_expr":"Object"},{"name":"initPosition","type":"Number","optional":true,"default":"`_timeline getVariable [\"Pos\", 0.0]`","description":"initial position","type_expr":"Number","text":"initPosition: Number - (Optional, default `_timeline getVariable [\"Pos\", 0.0]`) initial position"},{"name":"length","type":"Number","optional":true,"default":"`_timeline getVariable [\"Length\", 10.0]`","description":"length","type_expr":"Number","text":"length: Number - (Optional, default `_timeline getVariable [\"Length\", 10.0]`) length"},{"name":"playRate","type":"Number","optional":true,"default":"`_timeline getVariable [\"PlayRate\", 1.0]`","description":"play rate","type_expr":"Number","text":"playRate: Number - (Optional, default `_timeline getVariable [\"PlayRate\", 1.0]`) play rate"},{"name":"loop","type":"Boolean","optional":true,"default":"`_timeline getVariable [\"Loop\", false]`","description":"true - loop enabled, false - loop disabled","type_expr":"Boolean","text":"loop: Boolean - (Optional, default `_timeline getVariable [\"Loop\", false]`) true - loop enabled, false - loop disabled"},{"name":"reverse","type":"Boolean","optional":true,"default":"`_timeline getVariable [\"Reverse\", false]`","description":"true - reverse, false - Do not reverse","type_expr":"Boolean","text":"reverse: Boolean - (Optional, default `_timeline getVariable [\"Reverse\", false]`) true - reverse, false - Do not reverse"},{"name":"playOnStart","type":"Boolean","optional":true,"default":"`_timeline getVariable [\"PlayFromStart\", false]`","description":"true - play at scenario start, false - Do not play at scenario start","type_expr":"Boolean","text":"playOnStart: Boolean - (Optional, default `_timeline getVariable [\"PlayFromStart\", false]`) true - play at scenario start, false - Do not play at scenario start"},{"name":"destroyWhenFinished","type":"Boolean","optional":true,"default":"`_timeline getVariable [\"DestroyWhenFinished\", false]`","description":"true - Destroy when done, false - Do not destroy when done","type_expr":"Boolean","text":"destroyWhenFinished: Boolean - (Optional, default `_timeline getVariable [\"DestroyWhenFinished\", false]`) true - Destroy when done, false - Do not destroy when done"}],"returns":{"type":"Nothing","type_expr":"Nothing"}}],"examples":[{"code":["[timeline] call BIS_fnc_timeline_init;"]}],"see_also":["BIS_fnc_timeline_deleted","BIS_fnc_timeline_cleanup","BIS_fnc_timeline_finish"]}