/////////////////////////////////////////////////////////////////////
| 3047 | |
| 3048 | ////////////////////////////////////////////////////////////////////////// |
| 3049 | int CScriptObjectEntity::DisableAnimationEvent(IFunctionHandler *pH) |
| 3050 | { |
| 3051 | CHECK_PARAMETERS(2); |
| 3052 | int idSource; |
| 3053 | const char *sAnimation; |
| 3054 | pH->GetParam(1,idSource); |
| 3055 | pH->GetParam(2,sAnimation); |
| 3056 | IEntity *pSource=m_pEntitySystem->GetEntity(idSource); |
| 3057 | if(!pSource) |
| 3058 | pH->EndFunction(); |
| 3059 | IEntityCharacter *pCharacter=pSource->GetCharInterface(); |
| 3060 | ICryCharInstance* pCryCharacter=pCharacter->GetCharacter(0); |
| 3061 | if (pCryCharacter) |
| 3062 | pCryCharacter->RemoveAnimationEventSink (sAnimation, m_pEntity); |
| 3063 | |
| 3064 | return pH->EndFunction(); |
| 3065 | } |
| 3066 | |
| 3067 | ////////////////////////////////////////////////////////////////////////// |
| 3068 | int CScriptObjectEntity::SetAnimationSpeed(IFunctionHandler *pH) |
nothing calls this directly
no test coverage detected