ACE3/addons/common/functions/fnc_isFeatureCameraActive.sqf

35 lines
1.0 KiB
Plaintext
Raw Normal View History

/*
* Author: Sniperwolf572
* Checks if one of the following common feature cameras is active:
*
* - Curator
* - ACE Spectator
* - Arsenal camera (BIS_fnc_arsenal)
* - Establishing shot (BIS_fnc_establishingShot)
* - Splendid camera (BIS_fnc_camera)
* - Animation viewer (BIS_fnc_animViewer)
* - Classic camera (BIS_fnc_cameraOld)
*
* Arguments:
* 0: None <NIL>
*
* Return Value:
* A feature camera is active <BOOL>
*
* Example:
* [] call ace_common_fnc_isFeatureCameraActive
*
2015-09-19 20:27:23 +00:00
* Public: Yes
*/
#include "script_component.hpp"
!(
isNull curatorCamera && // Curator
{isNull (GETMVAR(EGVAR(spectator,camera),objNull))} && // ACE Spectator
{isNull (GETUVAR(BIS_fnc_arsenal_cam, objNull))} && // Arsenal camera
{isNull (GETMVAR(BIS_fnc_establishingShot_fakeUAV, objNull))} && // Establishing shot camera
{isNull (GETMVAR(BIS_fnc_camera_cam, objNull))} && // Splendid camera
{isNull (GETUVAR(BIS_fnc_animViewer_cam, objNull))} && // Animation viewer camera
{isNull (GETMVAR(BIS_DEBUG_CAM, objNull))} // Classic camera
2015-09-19 20:27:23 +00:00
) // return