ACE3/addons/disarming/functions/fnc_eventTargetFinish.sqf

28 lines
661 B
Plaintext
Raw Normal View History

2015-02-11 01:55:53 +00:00
/*
* Author: PabstMirror
2015-08-09 03:18:26 +00:00
*
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"
2015-08-09 03:18:26 +00:00
params ["_caller", "_target", "_errorMsg"];
2015-02-11 01:55:53 +00:00
2015-02-27 22:16:35 +00:00
if (_errorMsg != "") then {
2015-08-26 15:39:44 +00:00
ACE_LOGINFO_2("%1 - eventTargetFinish: %2",ACE_time,_this);
2016-05-24 13:13:11 +00:00
["ace_disarmDebugCallback", [_caller, _target, _errorMsg], [_caller]] call CBA_fnc_targetEvent;
2015-02-27 22:16:35 +00:00
};