UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Sound with trigger

broken avatar :(
Created 10 years ago
by pashan
0 Members and 1 Guest are viewing this topic.
1,585 views
broken avatar :(
×
broken avatar :(
UM Member, Mapper and 3d Modeler
Location: ca
Date Registered: 8 February 2014
Last active: 3 years ago
Posts
835
Respect
Forum Rank
The Decider
Primary Group
Community Mapper
My Groups
More
My Contact & Social Links
More
Personal Quote
Port Arthur
Signature
×
pashan's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
How do i make a sound play when the player hits a trigger?

All players in the game should hear it?
Marked as best answer by pashan 10 years ago
broken avatar :(
×
broken avatar :(
Location: se
Date Registered: 30 July 2013
Last active: 5 days ago
Posts
517
Respect
Forum Rank
Zombie Enslaver
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
×
Ege115's Groups
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Ege115's Contact & Social LinksEge115
Maybe this?
Code Snippet
Plaintext
#include maps\_utility; 
#include common_scripts\utility;
#include maps\_zombiemode_utility;

main()
{
thread sound();
}

sound()
{
sound_trig = GetEnt("sound_trig","targetname");

sound_trig setCursorHint( "HINT_NOICON" );
sound_trig sethintstring ("Press &&1 to play sound");
sound_trig waittill("trigger");
players = get_players();

          for( i = 0; i < players.size; i++ )
          {
          players[i] playsound("SOUND_NAME");
          sound_trig delete();
          }
}
Last Edit: May 19, 2014, 08:58:15 pm by Ege115

 
Loading ...