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
Check My Key-to-Door Script. Thanks!
Gamemakingdude Offline
Senior Member

Posts: 470
Threads: 82
Joined: Nov 2010
Reputation: 9
#2
RE: Check My Key-to-Door Script. Thanks!

PHP Code: (Select All)
void UsedKeyOnDoor(string &in asItemstring &in asEntity)
{
    
SetSwingDoorLocked(asEntity,false,true);
    
PlaySoundAtEntity("","unlock_door"asEntity0false);
    
RemoveItem(asItem);


Replace your unlock script with this.
This will work with any key and will unlock any door with the key. Just make sure you change your item call back function to usedkeyondoor.

Rep if like me or im helpful or you love my stories!
Stephanos house
10-07-2011, 03:43 PM
Find


Messages In This Thread
RE: Check My Key-to-Door Script. Thanks! - by Gamemakingdude - 10-07-2011, 03:43 PM



Users browsing this thread: 2 Guest(s)