ACE3/addons/goggles/functions/fnc_externalCamera.sqf

27 lines
586 B
Plaintext
Raw Normal View History

#include "..\script_component.hpp"
/*
* 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
*/
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
private _isFeatureCamera = call CBA_fnc_getActiveFeatureCamera != "";
if (GVAR(showInThirdPerson)) then {
cameraView in ["GROUP"] || _isFeatureCamera
} else {
cameraView in ["EXTERNAL", "GROUP"] || _isFeatureCamera
};