Jaysyn904 66a0a3e043 Initial commit
Initial commit.
2024-08-03 14:13:18 -04:00

21 lines
489 B
Plaintext

void main()
{
int ude = GetUserDefinedEventNumber();
if (ude == 1300)
{
object riddledoor = GetObjectByTag("riddledoor");
if(!GetIsOpen(riddledoor))
{
int listen = GetListenPatternNumber();
if (listen == 1000)
{
SetLocked(riddledoor,FALSE);
AssignCommand(riddledoor,ActionOpenDoor(riddledoor));
SetListening(OBJECT_SELF,FALSE);
DestroyObject(OBJECT_SELF,0.2);
}
}
}
}