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
Key will now not work
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#8
RE: Key will now not work

void OnStart()
{
AddUseItemCallback("", "corridorkey", "corridordoor", "KeyOnDoor", true);
}


void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("corridordoor", false, true);
PlaySoundAtEntity("", "unlock_door", "corridordoor", 0, false);
RemoveItem("corridorkey");
}


You didn't name the functions properly and you didn't use the right syntax. Use the one above.

02-15-2012, 06:29 AM
Find


Messages In This Thread
Key will now not work - by A.I. - 02-15-2012, 03:15 AM
RE: 'key' Not Declared - by Obliviator27 - 02-15-2012, 03:21 AM
RE: 'key' Not Declared - by A.I. - 02-15-2012, 03:25 AM
RE: 'key' Not Declared - by Obliviator27 - 02-15-2012, 03:35 AM
RE: 'key' Not Declared - by A.I. - 02-15-2012, 03:39 AM
RE: Key will now not work - by flamez3 - 02-15-2012, 05:40 AM
RE: Key will now not work - by A.I. - 02-15-2012, 06:26 AM
RE: Key will now not work - by flamez3 - 02-15-2012, 06:29 AM
RE: Key will now not work - by A.I. - 02-15-2012, 06:35 AM



Users browsing this thread: 5 Guest(s)