MCPcopy Create free account
hub / github.com/StrongPC123/Far-Cry-1-Source-Full / DetachObjectToBone

Method DetachObjectToBone

CryEntitySystem/Entity.cpp:3225–3242  ·  view source on GitHub ↗

------------------------------------------------------------------

Source from the content-addressed store, hash-verified

3223//
3224//------------------------------------------------------------------
3225void CEntity::DetachObjectToBone( const char* boneName,BoneBindHandle objectBindHandle/* =-1 */ )
3226{
3227 ICryCharInstance *character = GetCharInterface()->GetCharacter(PLAYER_MODEL_IDX);
3228
3229 if (character)
3230 {
3231 if (objectBindHandle == -1)
3232 {
3233 // Old way.
3234 // m_pSelectedInfo->pBindInfo =
3235 character->AttachObjectToBone( NULL, boneName, false );
3236 }
3237 else
3238 {
3239 character->Detach( objectBindHandle );
3240 }
3241 }
3242}
3243
3244
3245// returns true if the entity changed in any way trough moving or animation

Callers

nothing calls this directly

Calls 3

GetCharacterMethod · 0.45
AttachObjectToBoneMethod · 0.45
DetachMethod · 0.45

Tested by

no test coverage detected