mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
742626ff1a
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
25 lines
628 B
Plaintext
25 lines
628 B
Plaintext
#include "..\script_component.hpp"
|
|
/*
|
|
* Author: PabstMirror
|
|
* Add a explosive detonation handler.
|
|
* Should be called on all machines.
|
|
* Code needs to return BOOL: true(allowed) / false(blocked)
|
|
* See https://ace3.acemod.org/wiki/framework/explosives-framework.html for an example.
|
|
*
|
|
* Arguments:
|
|
* 0: Code <CODE>
|
|
* - Passed [Unit<OBJECT>, MaxRange <NUMBER>, Explosive <OBJECT>, FuzeTime <NUMBER>, TriggerItem <STRING>]
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [{false}] call ace_explosives_fnc_addDetonateHandler;
|
|
*
|
|
* Public: Yes
|
|
*/
|
|
|
|
params [["_code", {true}, [{}]]];
|
|
|
|
GVAR(detonationHandlers) pushBack _code;
|