------------------------------------------------------------------
| 3223 | // |
| 3224 | //------------------------------------------------------------------ |
| 3225 | void 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 |
nothing calls this directly
no test coverage detected