Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help destroying key after use?
Xanthos Offline
Senior Member

Posts: 318
Threads: 9
Joined: Mar 2012
Reputation: 8
#4
RE: destroying key after use?

(03-31-2012, 02:10 PM)zombiehacker595 Wrote:
(03-31-2012, 01:52 PM)DoubleThinking Wrote:
The Engine Scripts Page is there to help you! It is RemoveItem(""); where is the name of the key, in this case key_study_1. So it's RemoveItem("key_study_1");
so i put it underneath void UnlockDoor?
Yes
Put it under the SetDoorLocked

It's also good to add.
GiveSanityBoostSmall();
PlaySoundAtEntity("", "unlock_door", "player", 0, false);

(This post was last modified: 03-31-2012, 03:40 PM by Xanthos.)
03-31-2012, 03:38 PM
Find


Messages In This Thread
destroying key after use? - by zombiehacker595 - 03-31-2012, 01:41 PM
RE: destroying key after use? - by RedMser - 03-31-2012, 01:52 PM
RE: destroying key after use? - by Xanthos - 03-31-2012, 03:38 PM
RE: destroying key after use? - by JetlinerX - 03-31-2012, 05:25 PM



Users browsing this thread: 1 Guest(s)