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
Hi, i need help!
Slanderous Offline
Posting Freak

Posts: 1,606
Threads: 78
Joined: Dec 2012
Reputation: 63
#9
RE: Hi, i need help!

You just put more adduseitemcallbacks and then use key on door, for example:

PHP Code: (Select All)
void OnStart()
{
AddUseItemCallback("""key1""door1""UseKeyOnDoor1"true);
AddUseItemCallback("""key2""door2""UseKeyOnDoor2"true);
AddUseItemCallback("""key3""door3""UseKeyOnDoor3"true);
AddUseItemCallback("""key4""door4""UseKeyOnDoor4"true);
AddUseItemCallback("""key5""door5""UseKeyOnDoor5"true);
}

void UseKeyOnDoor1(string &in asItemstring &in asEntity)
{
SetSwingDoorLocked(asEntityfalsetrue);
PlaySoundAtEntity("""unlock_door.snt"asEntity0false);
RemoveItem(asItem);
}
void UseKeyOnDoor2(string &in asItemstring &in asEntity)
{
SetSwingDoorLocked(asEntityfalsetrue);
PlaySoundAtEntity("""unlock_door.snt"asEntity0false);
RemoveItem(asItem);
}
void UseKeyOnDoor3(string &in asItemstring &in asEntity)
{
SetSwingDoorLocked(asEntityfalsetrue);
PlaySoundAtEntity("""unlock_door.snt"asEntity0false);
RemoveItem(asItem);
}
void UseKeyOnDoor4(string &in asItemstring &in asEntity)
{
SetSwingDoorLocked(asEntityfalsetrue);
PlaySoundAtEntity("""unlock_door.snt"asEntity0false);
RemoveItem(asItem);
}
void UseKeyOnDoor5(string &in asItemstring &in asEntity)
{
SetSwingDoorLocked(asEntityfalsetrue);
PlaySoundAtEntity("""unlock_door.snt"asEntity0false);
RemoveItem(asItem);


Spoiler below!



03-27-2014, 01:14 PM
Find


Messages In This Thread
Hi, i need help! - by AlluNeesia - 03-27-2014, 11:45 AM
RE: Hi, i need help! - by Romulator - 03-27-2014, 11:55 AM
RE: Hi, i need help! - by AlluNeesia - 03-27-2014, 11:59 AM
RE: Hi, i need help! - by Romulator - 03-27-2014, 12:02 PM
RE: Hi, i need help! - by AlluNeesia - 03-27-2014, 12:04 PM
RE: Hi, i need help! - by Traggey - 03-27-2014, 12:07 PM
RE: Hi, i need help! - by AlluNeesia - 03-27-2014, 12:08 PM
RE: Hi, i need help! - by Traggey - 03-27-2014, 12:22 PM
RE: Hi, i need help! - by Slanderous - 03-27-2014, 01:14 PM
RE: Hi, i need help! - by AlluNeesia - 03-27-2014, 01:49 PM
RE: Hi, i need help! - by Mudbill - 03-27-2014, 02:43 PM
RE: Hi, i need help! - by Slanderous - 03-27-2014, 03:55 PM
RE: Hi, i need help! - by Mudbill - 03-27-2014, 04:05 PM



Users browsing this thread: 1 Guest(s)