BIS fnc timeline init: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "{{Function " to "{{RV|type=function ") |
Lou Montana (talk | contribs) m (Text replacement - "(\|p[0-9]+ *= *[^(]+\(Optional(, default[^)]*)\) )P([a-z])" to "$1p$3") |
||
(14 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
|game1= arma3 | |game1= arma3 | ||
|version1= 1.76 | |version1= 1.76 | ||
Line 9: | Line 8: | ||
|descr= Initialized a timeline. | |descr= Initialized a timeline. | ||
|s1= [timeline, initPosition, length, playRate, loop] | |s1= [timeline, initPosition, length, playRate, loop] call [[BIS_fnc_timeline_init]] | ||
|p1= timeline: [[Object]] - | |p1= timeline: [[Object]] - the timeline object | ||
|p2= initPosition: [[Number]] - (Optional, default | |p2= initPosition: [[Number]] - (Optional, default <sqf inline>_timeline getVariable ["Pos", 0.0]</sqf>) initial position | ||
|p3= length: [[Number]] - (Optional, default | |p3= length: [[Number]] - (Optional, default <sqf inline>_timeline getVariable ["Length", 10.0]</sqf>) length | ||
|p4= playRate: [[Number]] - (Optional, default | |p4= playRate: [[Number]] - (Optional, default <sqf inline>_timeline getVariable ["PlayRate", 1.0]</sqf>) play rate | ||
|p5= loop: [[Boolean]] - (Optional, default | |p5= loop: [[Boolean]] - (Optional, default <sqf inline>_timeline getVariable ["Loop", false]</sqf>) [[true]] - loop enabled, [[false]] - loop disabled | ||
|p6= reverse: [[Boolean]] - (Optional, default | |p6= reverse: [[Boolean]] - (Optional, default <sqf inline>_timeline getVariable ["Reverse", false]</sqf>) [[true]] - reverse, [[false]] - Do not reverse | ||
|p7= playOnStart: [[Boolean]] - (Optional, default | |p7= playOnStart: [[Boolean]] - (Optional, default <sqf inline>_timeline getVariable ["PlayFromStart", false]</sqf>) [[true]] - play at scenario start, [[false]] - Do not play at scenario start | ||
|p8= destroyWhenFinished: [[Boolean]] - (Optional, default | |p8= destroyWhenFinished: [[Boolean]] - (Optional, default <sqf inline>_timeline getVariable ["DestroyWhenFinished", false]</sqf>) [[true]] - Destroy when done, [[false]] - Do not destroy when done | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= < | |x1= <sqf>[timeline] call BIS_fnc_timeline_init;</sqf> | ||
|seealso= [[BIS_fnc_timeline_deleted]] [[BIS_fnc_timeline_cleanup]] [[BIS_fnc_timeline_finish]] [[ | |seealso= [[BIS_fnc_timeline_deleted]] [[BIS_fnc_timeline_cleanup]] [[BIS_fnc_timeline_finish]] [[:Category:Function Group: Timeline]] | ||
}} | }} | ||
Latest revision as of 12:31, 8 November 2023
Description
Syntax
- Syntax:
- [timeline, initPosition, length, playRate, loop] call BIS_fnc_timeline_init
- Parameters:
- timeline: Object - the timeline object
- initPosition: Number - (Optional, default c_timeline getVariable ["Pos", 0.0]) initial position
- length: Number - (Optional, default c_timeline getVariable ["Length", 10.0]) length
- playRate: Number - (Optional, default c_timeline getVariable ["PlayRate", 1.0]) play rate
- loop: Boolean - (Optional, default c_timeline getVariable ["Loop", false]) true - loop enabled, false - loop disabled
- reverse: Boolean - (Optional, default c_timeline getVariable ["Reverse", false]) true - reverse, false - Do not reverse
- playOnStart: Boolean - (Optional, default c_timeline getVariable ["PlayFromStart", false]) true - play at scenario start, false - Do not play at scenario start
- destroyWhenFinished: Boolean - (Optional, default c_timeline getVariable ["DestroyWhenFinished", false]) true - Destroy when done, false - Do not destroy when done
- Return Value:
- Nothing
Examples
- Example 1:
Additional Information
- See also:
- BIS_fnc_timeline_deleted BIS_fnc_timeline_cleanup BIS_fnc_timeline_finish Category:Function Group: Timeline
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