/////////////////////////////////////////////////////////////////////
| 2979 | |
| 2980 | ////////////////////////////////////////////////////////////////////////// |
| 2981 | int CScriptObjectEntity::SetAnimationEvent(IFunctionHandler *pH) |
| 2982 | { |
| 2983 | CHECK_PARAMETERS(2); |
| 2984 | int idSource; |
| 2985 | const char *sAnimation; |
| 2986 | pH->GetParam(1,idSource); |
| 2987 | pH->GetParam(2,sAnimation); |
| 2988 | IEntity *pSource=m_pEntitySystem->GetEntity(idSource); |
| 2989 | if(!pSource) |
| 2990 | pH->EndFunction(); |
| 2991 | IEntityCharacter *pCharacter=pSource->GetCharInterface(); |
| 2992 | ICryCharInstance* pCryCharacter=pCharacter->GetCharacter(0); |
| 2993 | pCryCharacter->AddAnimationEventSink(sAnimation,m_pEntity); |
| 2994 | return pH->EndFunction(); |
| 2995 | } |
| 2996 | |
| 2997 | ////////////////////////////////////////////////////////////////////////// |
| 2998 | int CScriptObjectEntity::SetAnimationKeyEvent(IFunctionHandler *pH) |
nothing calls this directly
no test coverage detected