| 884 | |
| 885 | |
| 886 | int 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 | |
| 905 | int CScriptObjectEntity::CreateSoftEntity(IFunctionHandler *pH) |
no test coverage detected