generated from Jaysyn/ModuleTemplate
27 lines
702 B
Plaintext
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));
|
|
}
|
|
}
|
|
|