Files
HeroesStone_PRC8/_module/nss/l404_trig_sound.nss
Jaysyn904 1eefc84201 Initial Commit
Initial Commit.
2025-09-14 15:40:46 -04:00

27 lines
702 B
Plaintext

//::///////////////////////////////////////////////
//:: Trigger Enter Event
//:: FileName l404_trig_sound
//:://////////////////////////////////////////////
/*
This trigger causes a sound to be played upon a PC's entry.
The sound's ref should be placed in the name field of the trigger.
*/
//:://////////////////////////////////////////////
//:: Created By: Red Golem
//:://////////////////////////////////////////////
void main()
{
object oMod = GetModule();
object oArea = GetArea(OBJECT_SELF);
object oEntering = GetEnteringObject();
if (GetIsPC(oEntering))
{
string sound = GetName(OBJECT_SELF);
AssignCommand(oEntering, PlaySound(sound));
}
}