I have an error on my .hps file. It says its on line 18 (I had to clean it up, it's the last line), but I can't see what's wrong there.
void OnStart ()
{
AddUseItemCallback("", "key1", "mansion_1", "KeyOnDoor", true);
SetEntityPlayerInteractCallback("key1", "ActivateMonster", true);
}
void KeyOnDoor(string &in asItem, string &in asEntity) {
SetSwingDoorLocked("mansion_1", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion_1", 0, false);
RemoveItem("key1);
}
void ActivateMonster(string &in asItem) {
SetEntityActive("morso1", true);
AddEnemyPatrolNode("morso1", "PathNodeArea_1", 0, "Idle");
AddEnemyPatrolNode("morso1", "PathNodeArea_2", 0, "Idle");
}