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 Scripting help?
taylor122002 Offline
Junior Member

Posts: 13
Threads: 10
Joined: Aug 2012
Reputation: 0
#8
RE: Amnesia Scripting help?

Thank you! It worked! Big Grin I did the Rep+1 thing, as for everyone else, I also thank you for the help! Big Grin It's much appreciated!
(08-18-2012, 06:20 PM)onv Wrote: There is a mistake in your .hps file , you're using the CustomSubItemTypeName instead of the key's name in your script , try this :



////////////////////////////

// Run when the map starts
void OnStart()

{
AddUseItemCallback("", "Key_1", "LockedDoor1", "UsedKeyOnDoor", true);
}

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

////////////////////////////

// Run when entering map

void OnEnter()
{

}

////////////////////////////

// Run when leaving map

void OnLeave()
{

}

I would really appreciate +rep if it worked Big Grin
08-20-2012, 10:06 PM
Find


Messages In This Thread
Amnesia Scripting help? - by taylor122002 - 08-17-2012, 01:50 AM
RE: Amnesia Scripting help? - by Adny - 08-17-2012, 04:08 AM
RE: Amnesia Scripting help? - by onv - 08-18-2012, 06:20 PM
RE: Amnesia Scripting help? - by taylor122002 - 08-20-2012, 10:06 PM
RE: Amnesia Scripting help? - by onv - 08-19-2012, 11:17 AM
RE: Amnesia Scripting help? - by onv - 08-20-2012, 03:17 PM



Users browsing this thread: 1 Guest(s)