BIS fnc timeline init: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - " |exec= call " to " ") |
m (Text replacement - "{{Inline code|" to "{{ic|") |
||
Line 13: | Line 13: | ||
|p1= timeline: [[Object]] - The timeline object | |p1= timeline: [[Object]] - The timeline object | ||
|p2= initPosition: [[Number]] - (Optional, default {{ | |p2= initPosition: [[Number]] - (Optional, default {{ic|timeline [[getVariable]] ["Pos", 0.0]}}) Initial position | ||
|p3= length: [[Number]] - (Optional, default {{ | |p3= length: [[Number]] - (Optional, default {{ic|timeline [[getVariable]] ["Length", 10.0]}}) Length | ||
|p4= playRate: [[Number]] - (Optional, default {{ | |p4= playRate: [[Number]] - (Optional, default {{ic|timeline [[getVariable]] ["PlayRate", 1.0]}}) Play rate | ||
|p5= loop: [[Boolean]] - (Optional, default {{ | |p5= loop: [[Boolean]] - (Optional, default {{ic|timeline [[getVariable]] ["Loop", false]}}) [[true]] - loop enabled, [[false]] - loop disabled | ||
|p6= reverse: [[Boolean]] - (Optional, default {{ | |p6= reverse: [[Boolean]] - (Optional, default {{ic|timeline [[getVariable]] ["Reverse", false]}}) [[true]] - reverse, [[false]] - Do not reverse | ||
|p7= playOnStart: [[Boolean]] - (Optional, default {{ | |p7= playOnStart: [[Boolean]] - (Optional, default {{ic|timeline [[getVariable]] ["PlayFromStart", false]}}) [[true]] - play at scenario start, [[false]] - Do not play at scenario start | ||
|p8= destroyWhenFinished: [[Boolean]] - (Optional, default {{ | |p8= destroyWhenFinished: [[Boolean]] - (Optional, default {{ic|timeline [[getVariable]] ["DestroyWhenFinished", false]}}) [[true]] - Destroy when done , [[false]] - Do not destroy when done | ||
|r1= [[Nothing]] | |r1= [[Nothing]] |
Revision as of 18:11, 27 February 2021
Description
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