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

Play a sound when you touch a trigger_multiple

broken avatar :(
Created 11 years ago
by vinnyz500
0 Members and 1 Guest are viewing this topic.
1,161 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 1 January 2014
Last active: 5 years ago
Posts
397
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
Signature
×
vinnyz500's Groups
vinnyz500's Contact & Social LinksXxMrPotatoxXpsn_hackedlobbies4uvinnyz500
Title says it all. I need it for just one player, not all  ( The one who touches it ). Thanks
broken avatar :(
×
broken avatar :(
☭ Soviet Commander ☭
Location: us
Date Registered: 13 August 2012
Last active: 10 years ago
Posts
2,789
Respect
Forum Rank
King of the Zombies
Primary Group
Community Daedra
My Groups
More
My Contact & Social Links
More
Signature
Let's keep this thread on topic from here on in. -DBZ

+1 to off-topic reply -DBZ

lmao. Too funny.

Goliath Script Placer: http://ugx-mods.com/forum/index.php/topic,11234.msg125257/topicseen.html#new

"...Christ, people. Learn C, instead of just stringing random characters
together until it compiles (with warnings)..."

-Linus Torvalds
×
daedra descent's Groups
Community Daedra
Community Daedra
daedra descent's Contact & Social LinksBlueSoviet
Like this?

Code Snippet
Plaintext
main()
{
trigs = getentarray("touch_triggers", "targetname");
if(!isdefined(trigs))
{
return;
}
array_thread(trigs, ::trig_think);
}
trig_think()
{
player = undefined;
self waittill("trigger", player);
player playSound(self.script_sound);
}

Pretty sure trigger_multiples are triggered via touch. If not i can fix that with an if statement.

 
Loading ...