2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2015-01-11 16:42:31 +00:00
|
|
|
/*
|
2015-02-02 09:04:53 +00:00
|
|
|
* 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>
|
2015-02-02 09:04:53 +00:00
|
|
|
*
|
|
|
|
* Example:
|
2015-09-29 16:51:24 +00:00
|
|
|
* call ace_goggles_fnc_externalCamera;
|
2015-02-02 09:04:53 +00:00
|
|
|
*
|
|
|
|
* Public: Yes
|
|
|
|
*/
|
2015-01-22 22:58:11 +00:00
|
|
|
|
2016-02-04 13:04:26 +00:00
|
|
|
// Handle the ThreeDen Editor Camera
|
2016-06-26 00:16:26 +00:00
|
|
|
if (is3DEN) exitWith {true};
|
2016-02-04 13:04:26 +00:00
|
|
|
|
2018-11-03 23:32:37 +00:00
|
|
|
private _isFeatureCamera = call CBA_fnc_getActiveFeatureCamera != "";
|
2015-12-27 05:31:49 +00:00
|
|
|
if (GVAR(showInThirdPerson)) then {
|
2018-10-12 12:59:40 +00:00
|
|
|
cameraView in ["GROUP"] || _isFeatureCamera
|
2015-12-27 05:31:49 +00:00
|
|
|
} else {
|
2018-10-12 12:59:40 +00:00
|
|
|
cameraView in ["EXTERNAL", "GROUP"] || _isFeatureCamera
|
2015-12-27 05:31:49 +00:00
|
|
|
};
|