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
Multiple Issues Help hps scripting and .lang errors?
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#13
RE: hps scripting and .lang errors?

(07-06-2012, 05:40 PM)ZereboO Wrote: just so that i understand you right. I could do this instead?

AddUseItemCallback("", "asItem","asEntity","UsedKeyOnDoor",true);

PS. I did not press enter. It goes to new line by it self
You can't use asItem and asEntity to write the callback, only to use in the function. The name of the items/entities in the "AddUseItemCallback" is what lets the game know what you're putting in the function. If you put asItem/asEntity in the callback, the game won't know what you're talking about.

AddUseItemCallback(string& asName, string& asItem, string& asEntity, string& asFunction, bool abAutoDestroy);

When you replace the bolded text with the corresponding items for this callback, you can now use asItem/asEntity in the function and the game will recognize it as the item/entity you originally used in the callback.

So if you use "key" for the item in the callback, and you place asItem in the function, it will recognize it as "key".

I'm a bit new to using this idea, so forgive me if the explanation wasn't 100% clear.

I rate it 3 memes.
07-06-2012, 05:47 PM
Find


Messages In This Thread
hps scripting and .lang errors? - by Lizard - 07-06-2012, 04:26 PM
RE: hps scripting and .lang errors? - by Lizard - 07-06-2012, 04:59 PM
RE: hps scripting and .lang errors? - by Lizard - 07-06-2012, 05:09 PM
RE: hps scripting and .lang errors? - by Lizard - 07-06-2012, 05:29 PM
RE: hps scripting and .lang errors? - by Adny - 07-06-2012, 05:22 PM
RE: hps scripting and .lang errors? - by Adny - 07-06-2012, 05:39 PM
RE: hps scripting and .lang errors? - by Lizard - 07-06-2012, 05:40 PM
RE: hps scripting and .lang errors? - by Adny - 07-06-2012, 05:47 PM
RE: hps scripting and .lang errors? - by Lizard - 07-06-2012, 05:55 PM



Users browsing this thread: 3 Guest(s)