mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Merge pull request #150 from KoffeinFlummi/moduleSounds
Added UAV exchange battery sound
This commit is contained in:
commit
d3f4f2883f
7
addons/logistics_uavbattery/CfgSounds.hpp
Normal file
7
addons/logistics_uavbattery/CfgSounds.hpp
Normal file
@ -0,0 +1,7 @@
|
||||
class CfgSounds {
|
||||
class ACE_replaceUAVBattery {
|
||||
name = "ACE_replaceUAVBattery";
|
||||
sound[]={QUOTE(PATHTOF(sounds\exchange_battery.ogg)),1,1};
|
||||
titles[]={};
|
||||
};
|
||||
};
|
@ -15,3 +15,4 @@ class CfgPatches {
|
||||
#include "CfgEventHandlers.hpp"
|
||||
#include "CfgVehicles.hpp"
|
||||
#include "CfgWeapons.hpp"
|
||||
#include "CfgSounds.hpp"
|
||||
|
@ -21,6 +21,7 @@ if (!(_this call FUNC(canRefuelUAV))) exitWith {};
|
||||
_onFinish = {
|
||||
EXPLODE_2_PVT((_this select 0),_caller,_target);
|
||||
_caller removeItem "ACE_UAVBattery";
|
||||
playSound3D [QUOTE(PATHTO_R(sounds\exchange_battery.ogg)), objNull, false, getPosASL _caller, 1, 1, 10];
|
||||
["VehicleSetFuel", [_target], [_target, 1]] call EFUNC(common,targetEvent); //setFuel is local
|
||||
};
|
||||
|
||||
|
BIN
addons/logistics_uavbattery/sounds/exchange_battery.ogg
Normal file
BIN
addons/logistics_uavbattery/sounds/exchange_battery.ogg
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user