mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
caca92f71d
* merge fire * Change required addons. Change getPos to getPosASL. Remove include * Apply suggestions from code review * Apply suggestions from code review Co-authored-by: Kyle Mckay <kymckay.dev@gmail.com> * Update addons/fire/stringtable.xml Co-authored-by: jonpas <jonpas33@gmail.com> Co-authored-by: Kyle Mckay <kymckay.dev@gmail.com>
24 lines
418 B
Plaintext
24 lines
418 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)
|
|
}
|