BIS fnc timeline init: Difference between revisions
| m (Text replacement - "\[\[Category\:Function Group\: Timeline(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "") | Lou Montana (talk | contribs)  | ||
| Line 25: | Line 25: | ||
| |p4= playRate: [[Number]] - (Optional, default {{Inline code|timeline [[getVariable]] ["PlayRate", 1.0]}}) Play rate | |p4= playRate: [[Number]] - (Optional, default {{Inline code|timeline [[getVariable]] ["PlayRate", 1.0]}}) Play rate | ||
| |p5= loop: [[Boolean]] - (Optional, default {{Inline code|timeline [[getVariable]] ["Loop", false]}}) [[ | |p5= loop: [[Boolean]] - (Optional, default {{Inline code|timeline [[getVariable]] ["Loop", false]}}) [[true]] - loop enabled, [[false]] - loop disabled | ||
| |p6= reverse: [[Boolean]] - (Optional, default {{Inline code|timeline [[getVariable]] ["Reverse", false]}}) [[ | |p6= reverse: [[Boolean]] - (Optional, default {{Inline code|timeline [[getVariable]] ["Reverse", false]}}) [[true]] - reverse, [[false]] - Do not reverse | ||
| |p7= playOnStart: [[Boolean]] - (Optional, default {{Inline code|timeline [[getVariable]] ["PlayFromStart", false]}}) [[ | |p7= playOnStart: [[Boolean]] - (Optional, default {{Inline code|timeline [[getVariable]] ["PlayFromStart", false]}}) [[true]] - play at scenario start, [[false]] - Do not play at scenario start | ||
| |p8= destroyWhenFinished: [[Boolean]] - (Optional, default {{Inline code|timeline [[getVariable]] ["DestroyWhenFinished", false]}}) [[ | |p8= destroyWhenFinished: [[Boolean]] - (Optional, default {{Inline code|timeline [[getVariable]] ["DestroyWhenFinished", false]}}) [[true]] - Destroy when done , [[false]] - Do not destroy when done | ||
| |r1= [[Nothing]] | |r1= [[Nothing]] | ||
Revision as of 17:54, 26 December 2020
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
 
	