ACE3/addons/explosives/functions/fnc_hasPlacedExplosives.sqf
2015-02-02 10:35:17 +02:00

18 lines
440 B
Plaintext

/*
* Author: Garth 'L-H' de Wet
* Whether the passed unit has placed any explosives or has a clacker that was used when explosives were placed.
*
* Arguments:
* 0: Unit <OBJECT>
*
* Return Value:
* Configs of all detonators <ARRAY>
*
* Example:
* _hasPlacedExplosives = [player] call ACE_Explosives_fnc_hasPlacedExplosives;
*
* Public: Yes
*/
#include "script_component.hpp"
(count (_this call FUNC(getPlacedExplosives)) > 0)