ACE3/addons/goggles/functions/fnc_externalCamera.sqf
PabstMirror 5108ffe20c Add goggles setting for level of effects
Can chose between none, tint/colorCC/ and full dust/dirt/rain/rotorwash
2016-06-25 19:16:26 -05:00

26 lines
553 B
Plaintext

/*
* 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
*/
#include "script_component.hpp"
// Handle the ThreeDen Editor Camera
if (is3DEN) exitWith {true};
if (GVAR(showInThirdPerson)) then {
cameraView in ["GROUP"] || EFUNC(common,isFeatureCameraActive)
} else {
cameraView in ["EXTERNAL", "GROUP"] || EFUNC(common,isFeatureCameraActive)
};