DIFF

class HumanCommandActionCallbackSource

Derived classes
View all 207 descendants

Constructors 2

private void HumanCommandActionCallback()
private void ~HumanCommandActionCallback()

Constants 8

static const int STATE_NONE = 0

undef state - not running anymore

static const int STATE_LOOP_IN = 1

looped state

static const int STATE_LOOP_END = 3
static const int STATE_LOOP_END2 = 4
static const int STATE_LOOP_ACTION = 6
static const int STATE_NORMAL = 7

one time state

Referenced by GetStateString()

Methods 18

proto native Human GetHuman()

get the human this cb belongs to

proto native void SetAligning(vector pPositionWS, vector pDirectionWS)

enables character aligning to desired position and direction in world space

proto native void ResetAligning()

disables character aligning

proto native void EnableCancelCondition(bool pEnable)

enables calling cancel condition default is disabled when enabled - there must be a function "bool CancelCondition()" implemented

proto native bool DefaultCancelCondition()

system implemented cancel condition (now raise or sprint cancels action)

static string GetStateString(int pState)

returns debug string of current state

string GetStateString()

returns debug string of current state

References GetState()
void OnAnimationEvent(int pEventID)

calls animation event -> must be registered with RegisterAnimationEvent

void OnFinish(bool pCanceled)

called ALWAYS! when action is finished (normal finish or cancel -> pCanceled)

void OnStateChange(int pOldState, int pCurrentState)

called when enabled by EnableStateChangeCallback and state changes, call GetState() to get actual state

bool IsUserActionCallback()
bool IsGestureCallback()
bool IsSymptomCallback()