Hello, (first im german,so my english is very bad
)
I maked a custom story, but if I start it, there appears a message:
FATAL ERROR :Could not load script file "custom_stories/Die Flucht/maps/Die Flucht.hps"!
main (98.2): ERR :Unexpected end of file....
thats my hps file: The error is in the last line after the } pls help .thanks
void OnStart()
{
AddUseItemCallback("", "key_tomb_1", "mansion_1", "UsedKeyOnDoor", true);
AddEntityCollideCallback("Player", "event", "event1", true, 1);
SetEntityCallbackFunc("schraube", "OnPickup");
AddEntityCollideCallback("Player", "infa", "startinf", true, 1);
AddEntityCollideCallback("inf", "infent", "entinf", true, 1);
AddUseItemCallback("", "key2", "tuer2", "UsedKeyOnDoor2", true);
AddEntityCollideCallback("stuhl,wandbrechen,brech, true, 1);
AddEntityCollideCallback("player", "vatera", "vaterevent", true, 1);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_1", false, false);
PlaySoundAtEntity("", "unlock_door.snt", "mansion_1", 0, false);
RemoveItem("key_tomb_1");
}
void event1(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "amb_idle.snt", "Player", 0, false);
GiveSanityDamage(5.0f, true);
SetPlayerActive(false);
SetMessage("Message", "intro1", 3);
StartPlayerLookAt("abc", 2, 2, "");
AddTimer("", 3.5f, "gerausch");
}
void gerausch(string &in asTimer)
{
StopPlayerLookAt();
SetPlayerActive(true);
}
void OnPickup(string &in asEntity, string &in type)
{
SetMessage("Message", "schraubea", 3);
GiveSanityBoostSmall();
}
void startinf(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("inf", "true");
AddEnemyPatrolNode("inf", "PathNodeArea_1", 5, "");
AddEnemyPatrolNode("inf", "PathNodeArea_2", 0.001, "");
AddEnemyPatrolNode("inf", "PathNodeArea_3", 0.001, "");
AddEnemyPatrolNode("inf", "PathNodeArea_4", 0.001, "");
AddEnemyPatrolNode("inf", "PathNodeArea_5", 0.001, "");
AddEnemyPatrolNode("inf", "PathNodeArea_6", 0.001, "");
AddEnemyPatrolNode("inf", "PathNodeArea_7", 0.001, "");
AddEnemyPatrolNode("inf", "PathNodeArea_8", 0.001, "");
AddEnemyPatrolNode("inf", "PathNodeArea_9", 0.001, "");
AddEnemyPatrolNode("inf", "PathNodeArea_10", 0.001, "");
AddEnemyPatrolNode("inf", "PathNodeArea_11", 0.001, "");
AddEnemyPatrolNode("inf", "PathNodeArea_12", 0.001, "");
AddEnemyPatrolNode("inf", "PathNodeArea_13", 0.001, "");
AddEnemyPatrolNode("inf", "PathNodeArea_14", 0.001, "");
AddEnemyPatrolNode("inf", "PathNodeArea_15", 0.001, "");
SetMessage("Message", "versteck", 3);
}
void entinf(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("inf", false);
PlaySoundAtEntity("", "quest_completed.snt", "Player", 0, false);
SetMessage("Message", "weg", 2);
}
void UsedKeyOnDoor2(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("tuer2", false, false);
PlaySoundAtEntity("", "unlock_door.snt", "mansion_1", 0, false);
RemoveItem("key2");
}
void brech(string &in asParent, string &in asChild, int alState)
{
SetMessage("Message", "geschafft", 3);
PlaySoundAtEntity("", "break_wood_metal.snt", "Player", 0, false);
PlaySoundAtEntity("", "quest_completed.snt", "Player", 0, false);
GiveSanityBoostSmall();
SetEntityActive("zu", false);
SetEntityActive("offen", true);
StartScreenShake(0.01,0,0,2.9);
}
void vaterevent(string &in asParent, string &in asChild, int alState)
{
StartPlayerLookAt("vater", 3, 3, "");
AddTimer("", 2.0f, "vaterend");
SetMessage("Message", "vateraa", 3);
}
void vaterend(string &in asTimer)
{
StopPlayerLookAt();
}
Here is the error......