The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
aqfitz622 Offline
Junior Member

Posts: 23
Threads: 9
Joined: Nov 2011
Reputation: 0
#1
2 keys

I have come to the stunning realization that i suck at scripting. i am using two keys here. but one isn't working
the 1st AddUseItemCallback is not working right because it will not unlock the door



void OnStart()

{
AddUseItemCallback("", "doorway", "mansion_4", "FUNCTION", true);
AddUseItemCallback("", "floortwokey", "mansion_9", "UsedKeyOnDoor", true);
}

void FUNCTION(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_4", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion_4", 0, false);
RemoveItem("doorkey");
}

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


void OnEnter()
{

}

void OnLeave()
{
12-12-2011, 01:56 AM
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)