ACE3/addons/disarming/functions/fnc_eventTargetFinish.sqf

27 lines
675 B
Plaintext
Raw Normal View History

2015-02-11 01:55:53 +00:00
/*
* Author: PabstMirror
2015-03-21 01:17:49 +00:00
* After FUNC(disarmDropItems) has completed, passing a possible error code.
* Passes that error back to orginal caller.
2015-02-11 01:55:53 +00:00
*
* Arguments:
2015-02-27 21:23:46 +00:00
* 0: caller <OBJECT>
2015-02-11 01:55:53 +00:00
* 1: target <OBJECT>
2015-02-27 21:23:46 +00:00
* 2: errorMsg <STRING>
2015-02-11 01:55:53 +00:00
*
* Return Value:
2015-02-27 21:23:46 +00:00
* Nothing
2015-02-11 01:55:53 +00:00
*
* Example:
2015-03-21 01:17:49 +00:00
* [player1, player2, "Someting fucked up"] call ace_disarming_fnc_eventTargetFinish
2015-02-11 01:55:53 +00:00
*
* Public: No
*/
#include "script_component.hpp"
PARAMS_3(_caller,_target,_errorMsg);
2015-02-27 22:16:35 +00:00
if (_errorMsg != "") then {
2015-03-21 01:17:49 +00:00
diag_log text format ["[ACE_Disarming] %1 - eventTargetFinish: %2", time, _this];
2015-02-27 22:16:35 +00:00
["DisarmDebugCallback", [_caller], [_caller, _target, _errorMsg]] call EFUNC(common,targetEvent);
};