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

Method AttachToBone

CryEntitySystem/Entity.cpp:3183–3194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3181//------------------------------------------------------------------
3182
3183void CEntity::AttachToBone(EntityId id,const char* boneName)
3184{
3185 // safe upcast since we know what the entity system holds
3186 CEntity *pEntity =(CEntity *) m_pEntitySystem->GetEntity(id);
3187 ICryCharInstance *character = GetCharInterface()->GetCharacter(PLAYER_MODEL_IDX);
3188
3189 if (character)
3190 {
3191 // m_pSelectedInfo->pBindInfo =
3192 character->AttachObjectToBone( pEntity->GetIStatObj(0),boneName, false );
3193 }
3194}
3195
3196//
3197//------------------------------------------------------------------

Callers 3

AttachObjectMethod · 0.45
AttachObjectToBoneMethod · 0.45
AttachObjectToBoneMethod · 0.45

Calls 4

GetEntityMethod · 0.45
GetCharacterMethod · 0.45
AttachObjectToBoneMethod · 0.45
GetIStatObjMethod · 0.45

Tested by

no test coverage detected