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


Poll: Isnt this problem such a bitch!?
You do not have permission to vote in this poll.
YES IT'S SOO ANNOYING
100.00%
3 100.00%
nah, I don't make custom stories
0%
0 0%
Total 3 vote(s) 100%
* You voted for this item. [Show Results]

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Amnesia custom story .hps file problem HELP ASAP
Apjjm Offline
Is easy to say

Posts: 496
Threads: 18
Joined: Apr 2011
Reputation: 52
#4
RE: Amnesia custom story .hps file problem HELP ASAP

You have a semi-colon at the end of "void UsedKeyOnDoor(string &in asItem, string &in as Entity)". Also you have "as Entity" instead of "asEntity". The following should work:
void OnStart()
{
AddUseItemCallback("", "BedroomKey_1", "bedroom_1", "UsedKeyOnDoor", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("bedroom_1", false, true);
PlaySoundAtEntity("", "unlock_door", "bedroom_1", 0, false);
RemoveItem("BedroomKey_1");
}

Edit: Code formatting fixed.
(This post was last modified: 12-30-2011, 03:22 PM by Apjjm.)
12-30-2011, 03:20 PM
Find


Messages In This Thread
RE: Amnesia custom story .hps file problem HELP ASAP - by Apjjm - 12-30-2011, 03:20 PM



Users browsing this thread: 1 Guest(s)