mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
26 lines
522 B
Plaintext
26 lines
522 B
Plaintext
/*
|
|
* Author: BaerMitUmlaut
|
|
* Checks if the given helicopter still exits, and if not, destroys the FRIES.
|
|
*
|
|
* Arguments:
|
|
* 0: The helicopter <OBJECT>
|
|
* 1: The helicopter's FRIES <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [_vehicle, _fries] call ace_fastroping_fnc_checkVehicleThread
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
params ["_vehicle", "_fries"];
|
|
|
|
if (isNull _vehicle) then {
|
|
deleteVehicle _fries;
|
|
} else {
|
|
[FUNC(checkVehicleThread), _this, 5] call CBA_fnc_waitAndExecute;
|
|
};
|