MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / setActionThread

Method setActionThread

Engine/source/T3D/player.cpp:3802–3817  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3800//----------------------------------------------------------------------------
3801
3802bool Player::setActionThread(const char* sequence,bool hold,bool wait,bool fsp)
3803{
3804 if (anim_clip_flags & ANIM_OVERRIDDEN)
3805 return false;
3806 for (U32 i = 1; i < mDataBlock->actionCount; i++)
3807 {
3808 PlayerData::ActionAnimation &anim = mDataBlock->actionList[i];
3809 if (!dStricmp(anim.name,sequence))
3810 {
3811 setActionThread(i,true,hold,wait,fsp);
3812 setMaskBits(ActionMask);
3813 return true;
3814 }
3815 }
3816 return false;
3817}
3818
3819void Player::setActionThread(U32 action,bool forward,bool hold,bool wait,bool fsp, bool forceSet)
3820{

Callers 1

player.cppFile · 0.80

Calls 7

dStricmpFunction · 0.85
isJumpActionMethod · 0.80
transitionToSequenceMethod · 0.80
errorfFunction · 0.50
setTimeScaleMethod · 0.45
getPosMethod · 0.45
setSequenceMethod · 0.45

Tested by

no test coverage detected