ACE3/addons/spike/functions/fnc_camera_switchAway.sqf

28 lines
595 B
Plaintext
Raw Normal View History

2021-12-12 03:55:03 +00:00
#include "script_component.hpp"
/*
* Author: Brandon (TCVM)
* Switches away from the currently controlled camera
*
* Arguments:
* 0: Guidance Arg Array <ARRAY>
* 1: PFID <NUMBER>
*
* Return Value:
* None
*
* Example:
* [[], 0] call ace_missileguidance_fnc_guidancePFH;
*
* Public: No
*/
params [["_cameraNamespace", objNull]];
if !([_cameraNamespace] call FUNC(camera_userInCamera)) exitWith {};
private _camera = GVAR(activeCamera) getVariable QGVAR(camera);
_camera cameraEffect ["terminate", "back"];
GVAR(activeCamera) = objNull;
QGVAR(camera_hud) cutText ["", "PLAIN"];