Posts
143
Respect
41Add +1
Forum Rank
Pack-a-Puncher
Primary Group
Member
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!function music_1()
{
trig_1 = GetEnt("music_trig_1", "targetname");
song_1 = struct::get("music_struct_1", "targetname");
trig_1 SetHintString("");
trig_1 SetCursorHint("HINT_NOICON");
trig_1 waittill("trigger", player);
song_1 PlayLocalSound("mus_trigger_1");
trig_1 Delete();
}I want to make a trigger where if any player enters a room with a trigger_multiple over it, a song plays.
I tried writing a script here, but without any luck: Code SnippetPlaintextfunction music_1()
{
trig_1 = GetEnt("music_trig_1", "targetname");
song_1 = struct::get("music_struct_1", "targetname");
trig_1 SetHintString("");
trig_1 SetCursorHint("HINT_NOICON");
trig_1 waittill("trigger", player);
song_1 PlayLocalSound("mus_trigger_1");
trig_1 Delete();
}
How can I do this correctly?