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
How to make a make a door that need two keys to unlock it?
Anxt Offline
Senior Member

Posts: 588
Threads: 12
Joined: Mar 2011
Reputation: 10
#14
RE: How to make a make a door that need two keys to unlock it?

Yes, that should work. Assuming, of course, the names of the keys are prisonkeylight_1 and prisonkeydark_1, and the door name is mansion_3. You can also add in a sanity boost inside the if statement, and anything else you want to happen, since it basically works as its own function. For example, if you wanted it to play a door unlocking sound, you would just place the PlaySoundAtEntity function with the SetSwingDoorLocked function.

Edit: whoops, sorry, didn't see that this had reached 2 pages. Ignore me Tongue

Edit 2: If you are getting an error that says unexpected end of file, it means you need to go back and look at where your "{ }" are, and make sure they are closing properly. Also check to make sure semicolons are placed in the right spots.

(This post was last modified: 03-09-2011, 06:32 PM by Anxt.)
03-09-2011, 06:30 PM
Find


Messages In This Thread
RE: How to make a make a door that need two keys to unlock it? - by Anxt - 03-09-2011, 06:30 PM



Users browsing this thread: 2 Guest(s)