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
Door problem?(NOOB)
drunkmonk Offline
Member

Posts: 109
Threads: 7
Joined: Jun 2012
Reputation: 4
#7
RE: Door problem?(NOOB)

(07-15-2012, 06:37 PM)Stenkilde Wrote: Hello Ongka!

Thanks for the SUPER quick answer!
A second question, could you try to explain to me why it has to be the specific "input" (string &in asItem) ?
The reason for the (string &in asItem) and what not is this is the function that is being called when you declared it earlier in your script. So what I mean is in your void OnStart you have a AddUseItemCallback("UnlockDoor", "ENTER_KEY_NAME_HERE", "ENTER_DOOR_NAME_HERE","UseKeyOnDoor", true); everything inside the brackets is all the information the script needs to be able to call the function. So the first quotes is the name of the callback(this is optional) the second is the name of the key that you want to use, the third is the name of the door you want the key to work with, and finally the fourth is the name of the function to call when you use the key on the specific door. Now for the (string &in asItem), this is the function that is being called when you use the key on the door, basically what is happening here is your telling that script that once you have used the key on the door you want it to unlock for example
I hope this helped
07-15-2012, 06:56 PM
Find


Messages In This Thread
Door problem?(NOOB) - by Stenkilde - 07-15-2012, 06:22 PM
RE: Door problem?(NOOB) - by Ongka - 07-15-2012, 06:34 PM
RE: Door problem?(NOOB) - by Stenkilde - 07-15-2012, 06:37 PM
RE: Door problem?(NOOB) - by drunkmonk - 07-15-2012, 06:56 PM
RE: Door problem?(NOOB) - by Ongka - 07-15-2012, 06:42 PM
RE: Door problem?(NOOB) - by Stenkilde - 07-15-2012, 06:46 PM
RE: Door problem?(NOOB) - by Ongka - 07-15-2012, 06:55 PM
RE: Door problem?(NOOB) - by Stenkilde - 07-15-2012, 06:58 PM
RE: Door problem?(NOOB) - by FlawlessHappiness - 07-15-2012, 08:09 PM
RE: Door problem?(NOOB) - by Stenkilde - 07-15-2012, 08:13 PM
RE: Door problem?(NOOB) - by drunkmonk - 07-15-2012, 08:21 PM
RE: Door problem?(NOOB) - by Stenkilde - 07-15-2012, 08:36 PM
RE: Door problem?(NOOB) - by FlawlessHappiness - 07-15-2012, 08:37 PM
RE: Door problem?(NOOB) - by Stenkilde - 07-15-2012, 08:40 PM
RE: Door problem?(NOOB) - by FlawlessHappiness - 07-15-2012, 08:52 PM
RE: Door problem?(NOOB) - by Stenkilde - 07-15-2012, 08:56 PM
RE: Door problem?(NOOB) - by FlawlessHappiness - 07-15-2012, 09:07 PM
RE: Door problem?(NOOB) - by Stenkilde - 07-15-2012, 09:11 PM
RE: Door problem?(NOOB) - by Ongka - 07-15-2012, 09:23 PM
RE: Door problem?(NOOB) - by Stenkilde - 07-15-2012, 10:29 PM



Users browsing this thread: 5 Guest(s)