DLib/functions/Radio/fn_removeCarRadio.sqf
2020-01-15 19:18:38 +01:00

17 lines
346 B
Plaintext

/*
Author: Djeeberjr
Description:
Removes the car radio
Parameter(s):
0: OBJECT - the vehicle
*/
params ["_veh"];
_actions = _veh getVariable "DLib_radio_actions";
deleteVehicle (_veh getVariable ["DLib_radio_source",objNull]);
[_veh,_actions select 0] remoteExec ["removeAction"];
[_veh,_actions select 1] remoteExec ["removeAction"];