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

Method SetObjectPos

CrySystem/ScriptObjectEntity.cpp:690–701  ·  view source on GitHub ↗

!set the relative position in the entity space of a certaing geometry(object) attached to the entity @param nSlot slot of the geometry @param pPos table with the x,y,z fields that contain the position of the object */

Source from the content-addressed store, hash-verified

688 @param pPos table with the x,y,z fields that contain the position of the object
689*/
690int CScriptObjectEntity::SetObjectPos(IFunctionHandler *pH)
691{
692 CHECK_PARAMETERS(2);
693 CScriptObjectVector pPos(m_pScriptSystem,true);
694 int nSlot;
695 Vec3 vPos;
696 pH->GetParam(1,nSlot);
697 pH->GetParam(2,pPos);
698 vPos=pPos.Get();
699 m_pEntity->SetObjectPos(nSlot,vPos);
700 return pH->EndFunction();
701}
702
703/*!return the relative orientation in the entity space of a certaing geometry(object) attached to the entity
704 @param nSlot slot of the geometry

Callers 2

LoadVehicleMethod · 0.45
ProcessMovementMethod · 0.45

Calls 3

EndFunctionMethod · 0.80
GetParamMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected