ACE3/addons/goggles/functions/fnc_externalCamera.sqf
jonpas 742626ff1a
General - Relative script_component.hpp includes (#9378)
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-09-12 20:58:10 +02:00

27 lines
586 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: Garth 'L-H' de Wet
* Returns if the camera is external or not.
*
* Arguments:
* None
*
* Return Value:
* Whether the camera is in external view or not. <BOOL>
*
* Example:
* call ace_goggles_fnc_externalCamera;
*
* Public: Yes
*/
// Handle the ThreeDen Editor Camera
if (is3DEN) exitWith {true};
private _isFeatureCamera = call CBA_fnc_getActiveFeatureCamera != "";
if (GVAR(showInThirdPerson)) then {
cameraView in ["GROUP"] || _isFeatureCamera
} else {
cameraView in ["EXTERNAL", "GROUP"] || _isFeatureCamera
};