Amnesia editor ERROR IN HPS FILE!
[/i]So this problem goes away when i delete the key codes but when i enter it i can't start my Custom Story, HELP!
My Hps File:
void OnStart()
{
AddUseItemCallback("", "Key1", "Key1Door", "Door1", true);
}
void Door1(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked(asEntity, false, true);
PlaySoundAtEntity("", "unlock_door", asEntity, 0, false);
RemoveItem(asItem);
}
{
SetEntityPlayerInteractCallback("Key1", "ActivateMonster", true);
AddEntityCollideCallback("Player", "PlayerCollide", "MonsterFunction", true, 1);
}
void MonsterFunction(string&in asParent, string &in asChild, int alState)
{
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_1", 0, "");
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2", 0.001, "");
SetEntityActive("servant_grunt_1", true);
}
void ActivateMonster(string &in item)
{
SetEntityActive("Brute1", true);
AddEnemyPatrolNode("Brute1", "PathNodeArea_3", 0, "idle");
AddEnemyPatrolNode("Brute1", "PathNodeArea_4", 0, "idle");
AddEnemyPatrolNode("Brute1", "PathNodeArea_5", 0, "idle");
AddEnemyPatrolNode("Brute1", "PathNodeArea_6", 0, "idle");
AddEnemyPatrolNode("Brute1", "PathNodeArea_7", 0, "idle");
AddEnemyPatrolNode("Brute1", "PathNodeArea_8", 0, "idle");
AddEnemyPatrolNode("Brute1", "PathNodeArea_9", 0, "idle");
}
|