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

Method Start2Anims

CrySystem/ScriptObjectAnimation.cpp:151–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151int CScriptObjectAnimation::Start2Anims(IFunctionHandler* pH)
152{
153 GET_ANIM_MANAGER(pAnimationManager);
154 switch (pH->GetParamCount())
155 {
156 case 5:
157 {
158 CASCmdStartAnim sa[2];
159 CASCmdStartMultiAnims ma;
160 if (!pH->GetParam (1, sa[0].nLayer)
161 ||!pH->GetParam (2, sa[0].szAnimName)
162 ||!pH->GetParam (3, sa[1].nLayer)
163 ||!pH->GetParam (4, sa[1].szAnimName)
164 ||!pH->GetParam (5, ma.fBlendTime))
165 m_pScriptSystem->RaiseError("System.UnloadAnim wrong argument type");
166 ma.numAnims = 2;
167 ma.pAnims = sa;
168 pAnimationManager->ExecScriptCommand(CASCMD_START_MANY_ANIMS, &ma);
169 }
170 break;
171 default:
172 m_pScriptSystem->RaiseError("System.Start2Anims wrong number of arguments (%d), use: Start2Anims(layer,anim,layer,anim,blendin)", pH->GetParamCount());
173 return pH->EndFunctionNull();
174 }
175 return pH->EndFunction(0);
176}
177
178
179int CScriptObjectAnimation::DumpStates(IFunctionHandler* pH)

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected