2016-02-29 18:18:59 +00:00
|
|
|
/*
|
|
|
|
* 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 {
|
2016-05-22 13:27:24 +00:00
|
|
|
[FUNC(checkVehicleThread), _this, 5] call CBA_fnc_waitAndExecute;
|
2016-02-29 18:18:59 +00:00
|
|
|
};
|