Sign in to follow this  
Followers 0
Diddl3s

How to add Refuel Sound?

4 posts in this topic

Hi,

Has anyone an idea of how I can call a .ogg file from the mission file when a player fills jerrycan?

Description.ext

Spoiler

class CfgSounds
{
  sounds[] = {refuel};
    class refuel
    {
        name = "refuel";
        sound[] = {"refuel.ogg", 1, 1};
        titles[] = {};
    };
};

How would I make this play when a player fills a jerry can?

 

Thanks

Edited by Diddl3s

Share this post


Link to post
Share on other sites

Before jerry can gets filled, use...

playsound "refuel";

E.g

_vehicle removeItem "Exile_Item_FuelCanisterEmpty";

playsound "refuel";
_vehicle addItem "Exile_Item_FuelCanisterFull";

Edited by Heavy

Share this post


Link to post
Share on other sites
Advertisement
15 hours ago, Heavy said:

Before jerry can gets filled, use...

playsound "refuel";

E.g

_vehicle removeItem "Exile_Item_FuelCanisterEmpty";

playsound "refuel";
_vehicle addItem "Exile_Item_FuelCanisterFull";

If only it was that easy. There is no isolated script for refilling jerry cans as far as I know. Its done through the config.cpp. I'm pretty sure the script is designed to be as modular as possible so its very ambiguous and lacking final detail.

Edited by Pattoh

Share this post


Link to post
Share on other sites
21 minutes ago, Crazy Mike said:

yes, it is that easy

e624f2139d7ae78a7186fb60ba2b3f79.png

did you look?

That's when only when refuelling the vehicle, he asked when a player refills a jerry can.

Still relevant though, may as well add in a sound for that.

Edited by Pattoh

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.