Added UAV exchange battery sound

This commit is contained in:
Glowbal 2015-02-15 12:44:34 +01:00
parent 57f8595e9c
commit ac54e8dfd7
4 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,7 @@
class CfgSounds {
class ACE_replaceUAVBattery {
name = "ACE_replaceUAVBattery";
sound[]={QUOTE(PATHTOF(sounds\exchange_battery.ogg)),1,1};
titles[]={};
};
};

View File

@ -15,3 +15,4 @@ class CfgPatches {
#include "CfgEventHandlers.hpp" #include "CfgEventHandlers.hpp"
#include "CfgVehicles.hpp" #include "CfgVehicles.hpp"
#include "CfgWeapons.hpp" #include "CfgWeapons.hpp"
#include "CfgSounds.hpp"

View File

@ -21,6 +21,7 @@ if (!(_this call FUNC(canRefuelUAV))) exitWith {};
_onFinish = { _onFinish = {
EXPLODE_2_PVT((_this select 0),_caller,_target); EXPLODE_2_PVT((_this select 0),_caller,_target);
_caller removeItem "ACE_UAVBattery"; _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 ["VehicleSetFuel", [_target], [_target, 1]] call EFUNC(common,targetEvent); //setFuel is local
}; };