Caleb4eva
Junior Member
Posts: 2
Threads: 1
Joined: Jun 2015
Reputation:
0
|
.Hps File Failing
So I have been working on a custom story for a bit now and I have gotten to the point where I needed to have a key unlock a level door,After using the .Hps file and typing in the code for it to work when ever I try to load the custom story map in game I recieve a failure notice that says this:FATAL ERROR:Could not load script file customstories/The Garden/maps/The Garden.hps'!
main (14,1) :ERR :Expected ',' or ';'. Here is the hps file code:void OnStart()
{
AddUseItemCallback("", "Room Key_1", "mansiondoor_1", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked("mansiondoor_1", false, true);
PlaySoundAtEntity("", "unlock_door", "Room key_1", 0, false);
RemoveItem("Room Key_1");
}
void OnEnter ()
}
void OnLeave ()
{
}
|
|
06-10-2015, 10:43 PM |
|