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
An "Unexpected end of file" error?
MissMarilynn Offline
Member

Posts: 77
Threads: 23
Joined: Oct 2011
Reputation: 1
#9
RE: An "Unexpected end of file" error?

(10-21-2011, 09:37 PM)Your Computer Wrote: That's because level doors don't have any applicable effects, and so there is no third parameter.

Always refer to this page when dealing with HPL2 script functions: http://wiki.frictionalgames.com/hpl2/amn..._functions
Third parameter? So I would have to change my script to:

AddUseItemCallback("", "girl_key", "Girls_Dorm_First_Floor", "openlevel");


void openlevel(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked("Girls_Dorm_First_Floor", false);
PlaySoundAtEntity("", "unlock_door", "door1", 0, false);
RemoveItem("girl_key");
PlayMusic("02_puzzle.ogg", false, 0.7f, 0, 10, false);
GiveSanityBoostSmall();
}

10-21-2011, 09:50 PM
Find


Messages In This Thread
RE: An "Unexpected end of file" error? - by MissMarilynn - 10-21-2011, 09:50 PM



Users browsing this thread: 1 Guest(s)