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

Method GetCameraAngles

CrySystem/ScriptObjectEntity.cpp:2601–2621  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2599}
2600
2601int CScriptObjectEntity::GetCameraAngles(IFunctionHandler *pH)
2602{
2603 Vec3 vAng;
2604 IEntityCamera *pICam = NULL;
2605
2606 CHECK_PARAMETERS(0);
2607
2608 pICam = m_pEntity->GetCamera();
2609
2610 if (!pICam)
2611 return pH->EndFunction();
2612
2613 vAng = pICam->GetAngles();
2614
2615 m_pCameraPosition->SetValue("x", vAng.x);
2616 m_pCameraPosition->SetValue("y", vAng.y);
2617 m_pCameraPosition->SetValue("z", vAng.z);
2618 return pH->EndFunction(m_pCameraPosition);
2619
2620
2621}
2622
2623
2624int CScriptObjectEntity::LoadBreakable(IFunctionHandler *pH)

Callers

nothing calls this directly

Calls 4

GetCameraMethod · 0.80
EndFunctionMethod · 0.80
GetAnglesMethod · 0.45
SetValueMethod · 0.45

Tested by

no test coverage detected