| 2599 | } |
| 2600 | |
| 2601 | int 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 | |
| 2624 | int CScriptObjectEntity::LoadBreakable(IFunctionHandler *pH) |
nothing calls this directly
no test coverage detected