JUTPSActions Lib Scripting Reference

JUTPSAction

This class keeps references for easy alteration during actions, it itself doesn't have functions/methods to use, it just keeps this references.

Properties
Description

TPSCharacter

JU Character Controller

anim

Animator Controller

rb

Rigidbody

coll

Collider

cam

Camera

JUTPSAnimatedAction

See below for virtual methods you can override

Virtual Methods
Description

void ActionCondition()

called every frame, override this to check conditions

void OnActionStarted()

override this to call some code once the action starts

void OnActionIsPlaying()

override this to call some code while action is playing

void OnActionEnded()

override this to call some code once the action ends

void OnNoAction()

override this to call some code while action state is none

void Update()

Unity's update method, override if you want to use it, but keep the base.Update(); line of code

See below the functions that a class that inherits the JUTPSAnimatedAction class can call:

Virtual Methods
Description

PlayAnimation(string AnimationStateName, int LayerID, float normalizedTime)

Play an animation in a layer and specific time

SwitchAnimationLayer(ActionPart BodyPartLayer)

Switch target body part

GetCurrentAnimationLayer()

Get index of layer of the target body part

DisableCharacterMovement(float duration = 0)

Disable character movement for a limited time

SetCurrentItemIndexToLastUsedItem()

Save the current item Switch ID

DisableItemOnHand()

Unequip item

EnableLastUsedItem()

Equip item with the saved item switch ID

Last updated