ACE3/addons/fastroping/functions/fnc_checkVehicleThread.sqf

25 lines
521 B
Plaintext
Raw Normal View History

#include "script_component.hpp"
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
*/
params ["_vehicle", "_fries"];
if (isNull _vehicle) then {
deleteVehicle _fries;
} else {
[FUNC(checkVehicleThread), _this, 5] call CBA_fnc_waitAndExecute;
2016-02-29 18:18:59 +00:00
};