mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
34 lines
769 B
Plaintext
34 lines
769 B
Plaintext
/*
|
|
* Author: Glowbal
|
|
*
|
|
*
|
|
* Arguments:
|
|
* 0: vehicle <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* TRUE <BOOL>
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
params ["_vehicle"];
|
|
|
|
systemChat format["VehicleInit: %1",_this];
|
|
diag_log format["VehicleInit: %1",_this];
|
|
|
|
if !(isServer) exitwith {};
|
|
|
|
private ["_device"];
|
|
_device = _vehicle getvariable [QGVAR(vehicleDevice), getText (configFile >> "CfgVehicles" >> typeOf _vehicle >> QGVAR(vehicleDevice))];
|
|
|
|
systemChat format["VehicleInit devices: %1",_device];
|
|
diag_log format["VehicleInit devices: %1",_device];
|
|
|
|
if (isClass (configFile >> "ACE_BFT" >> "Devices" >> _device)) then {
|
|
["bft_itemCreated", [_vehicle, _device, "", format["%1/%2",_vehicle, _device], STATE_OFFLINE]] call EFUNC(common,serverEvent);
|
|
};
|
|
|
|
true
|