Markop1
Junior Member
Posts: 1
Threads: 1
Joined: Jan 2017
Reputation:
0
|
.hps file error.
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);
}
|
|
01-29-2017, 02:02 PM |
|
Mudbill
Muderator
Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation:
179
|
RE: .hps file error.
TP_SCRIPT is missing a closing quotation mark.
|
|
01-29-2017, 02:57 PM |
|