ACE3/addons/fire/functions/fnc_isPlant.sqf
Brandon Danyluk caca92f71d
Add Fire component (#8245)
* 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>
2021-10-14 10:49:10 -05:00

21 lines
390 B
Plaintext

#include "script_component.hpp"
/*
* Author: commy2
* Check if object is a map placed bush or tree.
*
* Arguments:
* 0: Object <OBJECT>
*
* Return Value:
* Is bush or tree? <BOOL>
*
* Example:
* cursorObject call ace_fire_fnc_isPlant
*
* Public: No
*/
params [["_object", objNull, [objNull]]];
_object in nearestTerrainObjects [_object, ["TREE", "SMALL TREE", "BUSH"], 0.1]