G1R AngelScript
Scripting reference for the Gothic 1 Remake
Loading...
Searching...
No Matches
SequencePlayer Namespace Reference

Functions

Animation|Sequences
FSequencePlayerReference GetSequence (FSequencePlayerReference SequencePlayer, UAnimSequenceBase &SequenceBase)
 Get the current sequence of the sequence player - DEPRECATED, please use pure version.
FSequencePlayerReference ConvertToSequencePlayer (FAnimNodeReference Node, EAnimNodeReferenceConversionResult &Result)
 Get a sequence player context from an anim node context.
void ConvertToSequencePlayerPure (FAnimNodeReference Node, FSequencePlayerReference &SequencePlayer, bool &Result)
 Get a sequence player context from an anim node context (pure).
float32 GetAccumulatedTime (FSequencePlayerReference SequencePlayer)
 Gets the current accumulated time of the sequence player.
bool GetLoopAnimation (FSequencePlayerReference SequencePlayer)
 Get the looping state of the sequence player.
float32 GetPlayRate (FSequencePlayerReference SequencePlayer)
 Get the play rate of the sequence player.
float32 ComputePlayRateFromDuration (FSequencePlayerReference SequencePlayer, float32 Duration=1.000000)
 Returns the Play Rate to provide when playing this animation if a specific animation duration is desired.
UAnimSequenceBase GetSequencePure (FSequencePlayerReference SequencePlayer)
 Get the current sequence of the sequence player.
float32 GetStartPosition (FSequencePlayerReference SequencePlayer)
 Get the start position of the sequence player.
FSequencePlayerReference SetAccumulatedTime (FSequencePlayerReference SequencePlayer, float32 Time)
 Set the current accumulated time of the sequence player.
FSequencePlayerReference SetPlayRate (FSequencePlayerReference SequencePlayer, float32 PlayRate)
 Set the play rate of the sequence player.
FSequencePlayerReference SetSequence (FSequencePlayerReference SequencePlayer, UAnimSequenceBase Sequence)
 Set the current sequence of the sequence player.
FSequencePlayerReference SetStartPosition (FSequencePlayerReference SequencePlayer, float32 StartPosition)
 Set the start position of the sequence player. If this is called from On Become Relevant or On Initial Update then it should be accompanied by a call to SetAccumulatedTime to achieve the desired effect of resetting the play time of a sequence player.

Function Documentation

◆ ComputePlayRateFromDuration()

float32 ComputePlayRateFromDuration ( FSequencePlayerReference SequencePlayer,
float32 Duration = 1.000000 )

Returns the Play Rate to provide when playing this animation if a specific animation duration is desired.

◆ ConvertToSequencePlayer()

Get a sequence player context from an anim node context.

◆ ConvertToSequencePlayerPure()

void ConvertToSequencePlayerPure ( FAnimNodeReference Node,
FSequencePlayerReference & SequencePlayer,
bool & Result )

Get a sequence player context from an anim node context (pure).

◆ GetAccumulatedTime()

float32 GetAccumulatedTime ( FSequencePlayerReference SequencePlayer)

Gets the current accumulated time of the sequence player.

◆ GetLoopAnimation()

bool GetLoopAnimation ( FSequencePlayerReference SequencePlayer)

Get the looping state of the sequence player.

◆ GetPlayRate()

float32 GetPlayRate ( FSequencePlayerReference SequencePlayer)

Get the play rate of the sequence player.

◆ GetSequence()

FSequencePlayerReference GetSequence ( FSequencePlayerReference SequencePlayer,
UAnimSequenceBase & SequenceBase )

Get the current sequence of the sequence player - DEPRECATED, please use pure version.

◆ GetSequencePure()

UAnimSequenceBase GetSequencePure ( FSequencePlayerReference SequencePlayer)

Get the current sequence of the sequence player.

◆ GetStartPosition()

float32 GetStartPosition ( FSequencePlayerReference SequencePlayer)

Get the start position of the sequence player.

◆ SetAccumulatedTime()

FSequencePlayerReference SetAccumulatedTime ( FSequencePlayerReference SequencePlayer,
float32 Time )

Set the current accumulated time of the sequence player.

◆ SetPlayRate()

FSequencePlayerReference SetPlayRate ( FSequencePlayerReference SequencePlayer,
float32 PlayRate )

Set the play rate of the sequence player.

◆ SetSequence()

FSequencePlayerReference SetSequence ( FSequencePlayerReference SequencePlayer,
UAnimSequenceBase Sequence )

Set the current sequence of the sequence player.

◆ SetStartPosition()

FSequencePlayerReference SetStartPosition ( FSequencePlayerReference SequencePlayer,
float32 StartPosition )

Set the start position of the sequence player. If this is called from On Become Relevant or On Initial Update then it should be accompanied by a call to SetAccumulatedTime to achieve the desired effect of resetting the play time of a sequence player.