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
2 keys
irockpeople1 Offline
Junior Member

Posts: 9
Threads: 3
Joined: Jan 2012
Reputation: 0
#9
RE: 2 keys

Im also having this problum. My hps is this
////////////////////////////
// Run first time starting map
void OnStart()
{
AddUseItemCallback("", "key_1", "mansion_1", "KeyOnDoor", true);
AddUseItemCallback("", "key_2", "mansion_2", "Door", true);
}

void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_1", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion_1", 0, false);
RemoveItem("key_1");
}
void Door(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_2", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion_2", 0, false);
RemoveItem("key_2");
}
////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{
}
Also when i try to have a custom name all it says for them are "Picked up"
but when I only have one key, it works fine.
01-01-2012, 07:31 PM
Find


Messages In This Thread
2 keys - by aqfitz622 - 12-12-2011, 01:56 AM
RE: 2 keys - by Statyk - 12-12-2011, 02:11 AM
RE: 2 keys - by aqfitz622 - 12-12-2011, 05:29 AM
RE: 2 keys - by Your Computer - 12-12-2011, 05:33 AM
RE: 2 keys - by Statyk - 12-12-2011, 09:38 PM
RE: 2 keys - by nemesis567 - 12-12-2011, 10:05 PM
RE: 2 keys - by Your Computer - 12-13-2011, 01:35 AM
RE: 2 keys - by nemesis567 - 12-13-2011, 01:37 AM
RE: 2 keys - by irockpeople1 - 01-01-2012, 07:31 PM



Users browsing this thread: 1 Guest(s)