Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Please help with my custom story hps file!!!
mrburritos31 Offline
Junior Member

Posts: 18
Threads: 3
Joined: Jun 2013
Reputation: 0
#1
Please help with my custom story hps file!!!

So ive been working on a custom story and my hps file wont work it crashes the game this is the file:

void OnStart()
(
AddUseItemCallback("OpenDoor", "key_study_1", "level_wood_1", "UnlockLevelDoor", true);
)
void UnlockLevelDoor(string &in item, string &in entity)
(
SetLevelDoorLocked(entity, false);
)

Please help thanks!
07-04-2013, 04:51 AM
Find
cruisy18 Offline
Junior Member

Posts: 24
Threads: 2
Joined: Jun 2013
Reputation: 0
#2
RE: Please help with my custom story hps file!!!

You're not using the right kind of brackets in certain areas. Try this out.

void OnStart()
{
AddUseItemCallback("OpenDoor", "key_study_1", "level_wood_1", "UnlockLevelDoor", true);
}
void UnlockLevelDoor(string &in item, string &in entity)
{
SetLevelDoorLocked(entity, false);
}
07-04-2013, 04:53 AM
Find
mrburritos31 Offline
Junior Member

Posts: 18
Threads: 3
Joined: Jun 2013
Reputation: 0
#3
RE: Please help with my custom story hps file!!!

(07-04-2013, 04:53 AM)cruisy18 Wrote: You're not using the right kind of brackets in certain areas. Try this out.

void OnStart()
{
AddUseItemCallback("OpenDoor", "key_study_1", "level_wood_1", "UnlockLevelDoor", true);
}
void UnlockLevelDoor(string &in item, string &in entity)
{
SetLevelDoorLocked(entity, false);
}

THANK YOU SO MUCH It worked!
07-04-2013, 05:25 AM
Find




Users browsing this thread: 1 Guest(s)