Results 1 to 2 of 2

Thread: Ramp noise

  1. #1

    Unhappy

    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?
    Every Day above ground - Is A Good Day

    Old account, now known as CSJ.

  2. #2
    Staff Sergeant
    Join Date
    Jan 28 2002
    Location
    Australia
    Posts
    369
    Author of the Thread
    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""";
    };
    };

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •