Frictional Games Forum (read-only)

Full Version: .hps file error.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello. Today i started making my own custom story. I made a simple room with pathway where is script area. This activates script in .hps file.

The problem is, that when i play my story, it gets "FATAL ERROR" with this text:

FATAL ERROR. Could not load script file
'custom_stories/Whatif/custom_stories/Whatif/maps/w_1.hps'!
main (10, 2): ERR :Unexpected end of file


This is my hps. File:

void OnStart()
{
AddEntityCollideCallback("Player", "TP_SCRIPT, "JumpScare", true, 1);
}
void JumpScare(string &in asParent, string &in asChild, int alStates)
{
SetEntityActive("jumper", true);
AddPropForce("jumper", 0, 0, -100, "world");
PlaySoundAtEntity("", "24_iron_maiden.snt", "jumper", 0, false);
}
TP_SCRIPT is missing a closing quotation mark.