ACE3/addons/goggles/functions/fnc_externalCamera.sqf

26 lines
553 B
Plaintext
Raw Normal View History

/*
* Author: Garth 'L-H' de Wet
* Returns if the camera is external or not.
*
* Arguments:
* None
*
* Return Value:
2015-09-29 16:51:24 +00:00
* Whether the camera is in external view or not. <BOOL>
*
* Example:
2015-09-29 16:51:24 +00:00
* call ace_goggles_fnc_externalCamera;
*
* Public: Yes
*/
#include "script_component.hpp"
2015-01-22 22:58:11 +00:00
2016-02-04 13:04:26 +00:00
// Handle the ThreeDen Editor Camera
if (is3DEN) exitWith {true};
2016-02-04 13:04:26 +00:00
if (GVAR(showInThirdPerson)) then {
cameraView in ["GROUP"] || EFUNC(common,isFeatureCameraActive)
} else {
cameraView in ["EXTERNAL", "GROUP"] || EFUNC(common,isFeatureCameraActive)
};