mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
4ff01967b6
* Switch to CBA Feature Camera handling * Register ACE3's Feature Cameras * Backwards compatiblity for old ace event * Require CBA 3.9
27 lines
583 B
Plaintext
27 lines
583 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_getFeatureCameraActive != "";
|
|
if (GVAR(showInThirdPerson)) then {
|
|
cameraView in ["GROUP"] || _isFeatureCamera
|
|
} else {
|
|
cameraView in ["EXTERNAL", "GROUP"] || _isFeatureCamera
|
|
};
|