ACE3/addons/fire/functions/fnc_isBurning.sqf
jonpas 742626ff1a
General - Relative script_component.hpp includes (#9378)
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-09-12 20:58:10 +02:00

24 lines
421 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: commy2
* Check if object is burning.
*
* Arguments:
* 0: Vehicle <OBJECT>
*
* Return Value:
* None
*
* Example:
* player call ace_fire_fnc_isBurning
*
* Public: Yes
*/
params [["_unit", objNull, [objNull]]];
_unit getVariable [QGVAR(burning), false] || {
GVAR(burningPlants) = GVAR(burningPlants) select {!isNull _x};
_unit in GVAR(burningPlants)
}