User Tools

Site Tools


scripting:components:characteranimationcomponent

CharacterAnimationComponent

class: CharacterAnimationComponent

Parent Class: BaseAnimPhysComponent

Location: scripts/Game/generated/Character/CharacterAnimationComponent.c

Common usage

wip

Functions

SetAnimationLayerTPP()

SetAnimationLayerTPP();

Set animation layer for third person camera

Return type: void

SetAnimationLayerFPP()

SetAnimationLayerFPP();

Set animation layer for first person camera

Return type: void

GetCollisionMinMax()

GetCollisionMinMax(ECharacterStance whichStance, out vector outMin, out vector outMax);

Returns the collision box of the character in a specific stance. param outMin Minimum point of the collision box. param outMax Maximum point of the collision box. return Returns true if collision box vectors have been filled.

Return type: bool

GetMovementState()

GetMovementState(out CharacterMovementState movementState);

Return type: void

IsPrimaryTag()

IsPrimaryTag(AnimationTagID tagID);

Return type: bool

IsSecondaryTag()

IsSecondaryTag(AnimationTagID tagID);

Return type: bool

GetMaxSpeed()

GetMaxSpeed(float inputForward, float inputRight, int moveType);

Returns max speed for provided model direction and movement type

Return type: float

GetTopSpeed()

GetTopSpeed(int moveType = -1, bool ignoreStance = false);

Returns top speed for provided moveType To get absolute top speed -1 can be provided as a move type parameter

Return type: float

GetInertiaSpeed()

GetInertiaSpeed();

Returns the current inertia speed.

Return type: vector

scripting/components/characteranimationcomponent.txt · Last modified: 2022/08/10 22:52 by jerryhopper

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki