void OnStart()
{
SetEntityPlayerInteractCallback("scientite_note", "spawnmonster1", true);
AddEnemyPatrolNode("monster", "monster_first", 0, "");
AddEnemyPatrolNode("monster", "monster_leave", 1.0, "");
AddEntityCollideCallback("monster", "monster_leave_area", "monsterdisappear", true, 1);
}

void spawnmonster1(string &in asEntity)
{
SetEntityActive("spawn_monster", true);
AddEntityCollideCallback("Player", "spawn_monster", "spawnmonster2", true, 1);
}


void spawnmonster2(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("monster", true);
SetLevelDoorLocked("level_dungeon_1", false);
SetEnemyDisableTriggers("monster", true);
}

void monsterdisappear(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("monster", false);
PlaySoundAtEntity("", "door_level_wood_open.snt", "level_dungeon_1", 2.0, false);
}

void OnLeave()
{
StopMusic(3, 1);
SetupLoadScreen("LoadingText", "aztec1", 0, "screen3.jpg");
}