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
Locked doors
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#4
RE: Locked doors

Chap1400 is right!

You see:

This line calls the function UsedKeyOnDoor:
AddUseItemCallback("", "key1", "bedroomdoor1", "UsedKeyOnDoor", true);



Which is here:
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("bedroomdoor1", false, true);
PlaySoundAtEntity("", "unlock_door", "bedroomdoor1", 0, false);
RemoveItem("key1");

}


You'll have to make a new one, otherwise it will just link to the same function as the first one did.
results in: Key1 works on door1 but opens both door1 and door2

Trying is the first step to success.
09-21-2012, 01:16 PM
Find


Messages In This Thread
Locked doors - by Storfigge - 09-21-2012, 09:17 AM
RE: Locked doors - by Chap - 09-21-2012, 11:54 AM
RE: Locked doors - by The chaser - 09-21-2012, 01:11 PM
RE: Locked doors - by FlawlessHappiness - 09-21-2012, 01:16 PM
RE: Locked doors - by Storfigge - 09-21-2012, 02:00 PM
RE: Locked doors - by FlawlessHappiness - 09-21-2012, 02:19 PM



Users browsing this thread: 1 Guest(s)