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
Doors unlocked after picking up the key?
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#4
RE: Doors unlocked after picking up the key?

(10-17-2011, 05:33 AM)Darkdevil725 Wrote: Where are you seeing that at and what alterations should I make to fix it?

Replace this:
void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Study_Closet", false, true);
PlaySoundAtEntity("", "unlock_door", "Study_Closet", 0, false);
RemoveItem("Study_Closet_Key");
SetSwingDoorLocked("hallway_door_1", false, true);
PlaySoundAtEntity("", "unlock_door", "hallway_door_1", 0, false);
RemoveItem("hallway_key_1");
}

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

Tutorials: From Noob to Pro
10-17-2011, 05:41 AM
Website Find


Messages In This Thread
RE: Doors unlocked after picking up the key? - by Your Computer - 10-17-2011, 05:41 AM



Users browsing this thread: 1 Guest(s)