SetAnimationTextKeys

From GECK
Jump to: navigation, search


A function added by the kNVSE Plugin.

Description

Sets text keys for the specified animation sequence. Text keys allow you to define specific points in the animation timeline and associate text values with those points. These text values can be used for synchronization, labeling, or other purposes. Requires a reference if called after the game is loaded for the first time. If called from the main menu before the game is loaded, all actors using this animation will inherit the text keys from the animation. This function does nothing if the actor is currently playing the animation. To get the current text keys and values, use GetAnimationAttributes.

Syntax

[help]
reference.SetAnimationTextKeys anim path:string
  text key times:array
  text key values:array

Example

player.SetAnimationTextKeys "Characters\MyAnimation.kf" (Ar_List 0.0, 1.0) (Ar_List "Start", "End")

See Also