mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
30 lines
461 B
Plaintext
30 lines
461 B
Plaintext
#include "script_component.hpp"
|
|
/*
|
|
* Author: Gundy
|
|
*
|
|
* Description:
|
|
* Delete helmet camera
|
|
*
|
|
* Arguments:
|
|
* NONE
|
|
*
|
|
* Return Value:
|
|
* TRUE <BOOL>
|
|
*
|
|
* Example:
|
|
* [] call ace_bft_devices_fnc_deleteHelmetCam;
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
|
|
if (!isNil QGVAR(hCams)) then {
|
|
private _cam = GVAR(hCams) select 0;
|
|
_cam cameraEffect ["TERMINATE","BACK"];
|
|
camDestroy _cam;
|
|
deleteVehicle (GVAR(hCams) select 1);
|
|
GVAR(hCams) = nil;
|
|
};
|
|
|
|
true
|