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 file scripting errors *i need helpX|*
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#3
RE: hps file scripting errors *i need helpX|*

void OnStart
{
AddUseItemCallback("", "key_1", "door_1", "FUNCTION", true);
}

void OnEnter()
{

}

void OnLeave()
{

}
void FUNCTION(string &in item, string &in asEntity)
{
SetSwingDoorLocked("door_1", false);
RemoveItem("key_1");
}

There, fixed it for you. You had some things wrong:

-You put these "(" instead "{"
-You didn't have the FUNCTION function closed (with a })
-You hadn't put a ; at the end of the AddUseItemCallback.

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
07-30-2013, 11:08 AM
Find


Messages In This Thread
RE: hps file scripting errors *i need helpX|* - by The chaser - 07-30-2013, 11:08 AM



Users browsing this thread: 3 Guest(s)