BIS fnc timeline getInterpMode: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[[cC]ategory:[fF]unctions\|\{\{uc:[a-z A-Z_]*\}\}\]\]" to "")
m (Text replacement - "(\|[pr][0-9]+ *= *[^-]+) *- *C([a-eg-z])" to "$1 - c$2")
 
(10 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= Returns the timeline interp mode index.
|descr= Returns the timeline interp mode index.


||s1= [timeline] call [[BIS_fnc_timeline_getInterpMode]]|=Syntax
|s1= [timeline] call [[BIS_fnc_timeline_getInterpMode]]


|p1= timeline: [[Object]] - The timeline object
|p1= timeline: [[Object]] - the timeline object


|r1= [[Number]] - Can return:  
|r1= [[Number]] - can return:
{{Columns|4|
* 0  - Linear
* 0  - Linear
* 1  - Cubic
* 1  - Cubic
Line 30: Line 30:
* 14 - ElasticOut
* 14 - ElasticOut
* 15 - ElasticInOut
* 15 - ElasticInOut
}}


|x1= <code>_interpMode = [timeline] [[call]] [[BIS_fnc_timeline_getInterpMode]];</code>
|x1= <sqf>private _interpolationMode = [timeline] call BIS_fnc_timeline_getInterpMode;</sqf>
 
|exec= call


|seealso= [[BIS_fnc_timeline_deleted]] [[BIS_fnc_timeline_cleanup]] [[BIS_fnc_timeline_finish]] [[BIS_fnc_timeline_getAlpha]] [[BIS_fnc_timeline_getCurrentTime]] [[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_init]] [[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]]
|seealso= [[BIS_fnc_timeline_deleted]] [[BIS_fnc_timeline_cleanup]] [[BIS_fnc_timeline_finish]] [[BIS_fnc_timeline_getAlpha]] [[BIS_fnc_timeline_getCurrentTime]] [[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_init]] [[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]]
}}
}}
[[Category:{{Name|arma3}}: Functions|{{uc:timeline_getInterpMode}}]]

Latest revision as of 14:00, 8 November 2023

Hover & click on the images for description

Description

Description:
Returns the timeline interp mode index.
Execution:
call
Groups:
Timeline

Syntax

Syntax:
[timeline] call BIS_fnc_timeline_getInterpMode
Parameters:
timeline: Object - the timeline object
Return Value:
Number - can return:
  • 0 - Linear
  • 1 - Cubic
  • 2 - EaseIn
  • 3 - EaseOut
  • 4 - EaseInOut
  • 5 - Hermite
  • 6 - Berp
  • 7 - BounceIn
  • 8 - BounceOut
  • 9 - BounceInOut
  • 10 - QuinticIn
  • 11 - QuinticOut
  • 12 - QuinticInOut
  • 13 - ElasticIn
  • 14 - ElasticOut
  • 15 - ElasticInOut

Examples

Example 1:
private _interpolationMode = [timeline] call BIS_fnc_timeline_getInterpMode;

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_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_init 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