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

Method CreateStaticEntity

CrySystem/ScriptObjectEntity.cpp:886–902  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

884
885
886int CScriptObjectEntity::CreateStaticEntity(IFunctionHandler *pH)
887{
888// CHECK_PARAMETERS(2);
889 assert((unsigned int)pH->GetParamCount()-1u<3u);
890
891 float fMass;
892 int nSurfaceID=-1;
893 int nSlotToUse=-1;
894 pH->GetParam(1,fMass);
895 pH->GetParam(2,nSurfaceID);
896 if(pH->GetParamCount() == 3)
897 pH->GetParam(3,nSlotToUse);
898
899 if(m_pEntity)
900 m_pEntity->CreateStaticEntity(fMass,nSurfaceID,nSlotToUse);
901 return pH->EndFunction();
902}
903
904
905int CScriptObjectEntity::CreateSoftEntity(IFunctionHandler *pH)

Callers 1

LoadObjectMethod · 0.45

Calls 3

EndFunctionMethod · 0.80
GetParamCountMethod · 0.45
GetParamMethod · 0.45

Tested by

no test coverage detected