ACE3/addons/explosives/functions/fnc_hasPlacedExplosives.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

20 lines
493 B
Plaintext

#include "..\script_component.hpp"
/*
* 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
*/
// IGNORE_PRIVATE_WARNING(_hasPlacedExplosives);
(count (_this call FUNC(getPlacedExplosives)) > 0)