ACE3/addons/bft/functions/fnc_handleKilled.sqf
2018-10-04 16:43:06 +02:00

27 lines
569 B
Plaintext

#include "script_component.hpp"
/*
* Author: Glowbal
*
*
* Arguments:
*
* Return Value:
* None
*
* Public: No
*/
params ["_object"];
if (!isServer) exitwith {};
systemChat format["handleKilled: %1 ", _object];
diag_log format["handleKilled: %1 ", _object];
private _ownedDevices = _object getvariable [QGVAR(ownedDevices), []];
{
systemChat format["raising event vehicleDeviceKilled: %1 ", _x];
diag_log format["raising event vehicleDeviceKilled: %1 ", _x];
["bft_vehicleDeviceKilled", [_x]] call CBA_fnc_globalEvent;
} forEach _ownedDevices;