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
HPS error (level editing)
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#2
RE: HPS error (level editing)

After looking at it, the only thing I can think of is to take the line:

"
AddUseItemCallback("", "key_1", "door_1", "UsedKeyOnDoor", true);"


Take it out of the void OnEnter(), and add it to void OnStart()


You don't want all of your functions to be inside your onstart or onenter, you want them on their own, outside of it. For example,you have:

void OnEnter()
{
{
void your function(blahblah)
}
}
But that is wrong ^^^^^^^^
It needs to be outside of it, so more like this:
void OnEnter()
{
}


{
void yourfunction()
}

From what limited knowledge I have of C++ and the Amnesia scripts, OnStart() should be used to add your callbacks, and set music lights, and OnEnter() should be used for autosaves, and preloading sounds and particle systems. Functions go anywhere else (except OnLeave)If you're ever in doubt, you can check the .hps files from the actual Amnesia game.
Hope that helped. If I haven't made my point clear as I think I have, please P.M. me
03-16-2012, 08:56 PM
Find


Messages In This Thread
HPS error (level editing) - by mrscoomich - 03-16-2012, 07:36 PM
RE: HPS error (level editing) - by Adny - 03-16-2012, 08:56 PM
RE: HPS error (level editing) - by mrscoomich - 03-16-2012, 11:10 PM
RE: HPS error (level editing) - by Equil - 03-17-2012, 01:59 AM
RE: HPS error (level editing) - by mrscoomich - 03-17-2012, 03:18 AM
RE: HPS error (level editing) - by Equil - 03-17-2012, 05:10 AM
RE: HPS error (level editing) - by mrscoomich - 03-18-2012, 07:04 PM
RE: HPS error (level editing) - by DaAinGame - 03-21-2012, 04:23 AM
RE: HPS error (level editing) - by mrscoomich - 03-21-2012, 10:16 PM
RE: HPS error (level editing) - by DaAinGame - 03-21-2012, 10:20 PM
RE: HPS error (level editing) - by mrscoomich - 03-21-2012, 10:45 PM
RE: HPS error (level editing) - by DaAinGame - 03-21-2012, 11:00 PM
RE: HPS error (level editing) - by mrscoomich - 03-21-2012, 11:06 PM
RE: HPS error (level editing) - by DaAinGame - 03-21-2012, 11:07 PM



Users browsing this thread: 6 Guest(s)