ACE3/addons/spectator/functions/fnc_cam_resetTarget.sqf
Kyle Mckay e47e18001f
Docs - Update my display name everywhere (#9330)
* Update display name in team

* Update display name everywhere

* order

https://youtu.be/VYycQTm2HrM

---------

Co-authored-by: BrettMayson <brett@mayson.io>
2023-08-17 12:02:17 +02:00

29 lines
508 B
Plaintext

#include "script_component.hpp"
/*
* Author: Nelson Duarte, kymckay
* 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;
};