| 3181 | //------------------------------------------------------------------ |
| 3182 | |
| 3183 | void 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 | //------------------------------------------------------------------ |
no test coverage detected