Jump to content
Sign in to follow this  
Scud

Ramp noise

Recommended Posts

I have a ramp that opens and shuts and would like a noise/sound to coincide with the ramp movement probably

gun_elevate.

I have all the animations working, just need to add sound to cpp.

What is the correct script and which section do I place it?

Share this post


Link to post
Share on other sites

Problem solved thanks to Kaliyuga and Tomb.

If any1 else is interested

// Cfg Sounds

class CfgSounds

{

class rampsound

{

sound[]={"\scud_skyvanbr\gun_elevate.wss",db+50,0.4};

name = "";

titles[] = {};

};

};

// Useraction class

class UserActions

{

class Openramp

{

displayName="Open Ramp";

position="pos_ramp";

radius=7.000000;

condition="this animationPhase ""ani_ramp"" < 0.5";

statement="this animate [""ani_ramp"", 1]; this say ""rampsound""";

};

};

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×