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

Method AttachToBone

CrySystem/ScriptObjectEntity.cpp:1100–1114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1098
1099
1100int CScriptObjectEntity::AttachToBone(IFunctionHandler *pH)
1101{
1102 CHECK_PARAMETERS(2);
1103
1104 char *boneName;
1105 int nID;
1106 _SmartScriptObject pObj(m_pScriptSystem,true);
1107 pH->GetParam(1,*pObj);
1108 pH->GetParam(2,boneName);
1109 pObj->GetValue("id",nID);
1110
1111 m_pEntity->AttachToBone(nID, boneName);
1112
1113 return pH->EndFunction();
1114}
1115
1116int CScriptObjectEntity::Bind(IFunctionHandler *pH)
1117{

Callers

nothing calls this directly

Calls 3

EndFunctionMethod · 0.80
GetParamMethod · 0.45
GetValueMethod · 0.45

Tested by

no test coverage detected