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

Method UnloadAnim

CrySystem/ScriptObjectAnimation.cpp:202–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200
201
202int CScriptObjectAnimation::UnloadAnim(IFunctionHandler *pH)
203{
204 GET_ANIM_MANAGER(pAnimationManager);
205 switch (pH->GetParamCount())
206 {
207 case 1:
208 {
209 const char* pName;
210 if (pH->GetParam(1,pName))
211 pAnimationManager->ExecScriptCommand(CASCMD_UNLOAD_ANIMATION, (void*)pName);
212 else
213 {
214 m_pScriptSystem->RaiseError("System.UnloadAnim wrong argument type (%d) - must be a string", pH->GetParamType(1));
215 return pH->EndFunctionNull();
216 }
217 }
218
219 default:
220 m_pScriptSystem->RaiseError("System.UnloadAnim wrong number of arguments (%d)", pH->GetParamCount());
221 return pH->EndFunctionNull();
222 }
223 return pH->EndFunction(0);
224}
225
226
227int CScriptObjectAnimation::DumpModels(IFunctionHandler *pH)

Callers

nothing calls this directly

Calls 7

RaiseErrorMethod · 0.80
GetParamTypeMethod · 0.80
EndFunctionNullMethod · 0.80
EndFunctionMethod · 0.80
GetParamCountMethod · 0.45
GetParamMethod · 0.45
ExecScriptCommandMethod · 0.45

Tested by

no test coverage detected