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
Script Help Key Unlock Door script won't work :(
4WalledKid Offline
Member

Posts: 107
Threads: 23
Joined: Oct 2012
Reputation: 1
#3
RE: Key Unlock Door script won't work :(

You didn't specify the door you want to unlock with the key in
SetSwingDoorLocked(asEntity, false, true);

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{ SetSwingDoorLocked("basementdoor_1", false, true);
   PlaySoundAtEntity("", "unlock_door","basementdoor_1", 0.0f, false);
   RemoveItem(basementkey_1);
}

Let me know if it worked!

[Image: 4walledkidbanner_zps1514b7f6.png]
(This post was last modified: 10-08-2012, 11:03 PM by 4WalledKid.)
10-08-2012, 10:55 PM
Website Find


Messages In This Thread
Key Unlock Door script won't work :( - by Rowzter - 10-08-2012, 10:00 PM
RE: Key Unlock Door script won't work :( - by 4WalledKid - 10-08-2012, 10:55 PM



Users browsing this thread: 1 Guest(s)