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

Method SetObjectAngles

CrySystem/ScriptObjectEntity.cpp:729–740  ·  view source on GitHub ↗

!set the relative orientation 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 orientation of the object(in degrees) */

Source from the content-addressed store, hash-verified

727 @param pPos table with the x,y,z fields that contain the orientation of the object(in degrees)
728*/
729int CScriptObjectEntity::SetObjectAngles(IFunctionHandler *pH)
730{
731 CHECK_PARAMETERS(2);
732 CScriptObjectVector pAng(m_pScriptSystem,true);
733 int nSlot;
734 Vec3 vAng;
735 pH->GetParam(1,nSlot);
736 pH->GetParam(2,pAng);
737 vAng=pAng.Get();
738 m_pEntity->SetObjectAngles(nSlot,vAng);
739 return pH->EndFunction();
740}
741
742
743

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