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
Amnesia HPL Problem!
Steve Offline
Member

Posts: 178
Threads: 17
Joined: Jun 2012
Reputation: 7
#3
RE: Amnesia HPL Problem!

like what Chronofox said you have to put the ";" in the end of the line and not in front and you forgot to make some { and } so this should work:
void OnStart()
{
AddUseItemCallback("", "Key_1", "LockedDoor1", "UsedKeyOnDoor", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("LockedDoor1", false, true);
RemoveItem("Key_1");
}
and you also need quotations for LockedDoor1 and Key_1 which I included in my code.
I hope this helps Big Grin

CURRENTLY WORKING ON:
Final Light = 40%
Need of voice actors.
(This post was last modified: 08-03-2012, 09:30 AM by Steve.)
08-03-2012, 09:26 AM
Find


Messages In This Thread
Amnesia HPL Problem! - by Brothersvv09 - 08-03-2012, 05:01 AM
RE: Amnesia HPL Problem! - by Froge - 08-03-2012, 05:17 AM
RE: Amnesia HPL Problem! - by Steve - 08-03-2012, 09:26 AM
RE: Amnesia HPL Problem! - by Brothersvv09 - 08-03-2012, 10:32 PM
RE: Amnesia HPL Problem! - by Froge - 08-03-2012, 11:12 PM
RE: Amnesia HPL Problem! - by Brothersvv09 - 08-03-2012, 11:43 PM
RE: Amnesia HPL Problem! - by Froge - 08-04-2012, 12:35 AM
RE: Amnesia HPL Problem! - by Brothersvv09 - 08-04-2012, 12:49 AM
RE: Amnesia HPL Problem! - by Steve - 08-04-2012, 12:36 PM



Users browsing this thread: 1 Guest(s)