2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2017-08-12 13:25:48 +00:00
|
|
|
/*
|
2023-08-17 10:02:17 +00:00
|
|
|
* Author: Nelson Duarte, kymckay
|
2017-08-12 13:25:48 +00:00
|
|
|
* Removes the current camera interest and detaches dummy target.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [] call ace_spectator_fnc_cam_resetTarget
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
|
|
|
private _camera = GVAR(camera);
|
|
|
|
private _dummy = GVAR(camDummy);
|
|
|
|
|
|
|
|
if !(isNull _camera || isNull _dummy) then {
|
|
|
|
_camera camPrepareTarget objNull;
|
|
|
|
_camera camCommitPrepared 0;
|
|
|
|
|
|
|
|
detach _dummy;
|
|
|
|
|
|
|
|
GVAR(camHasTarget) = false;
|
|
|
|
};
|