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
Script help
PutraenusAlivius Offline
Posting Freak

Posts: 4,713
Threads: 75
Joined: Dec 2012
Reputation: 119
#6
RE: Script help

Something is wrong with the AddUseItemCallback, just like what Adrianis pointed out. AUIC takes 5 arguments. 4 names and 1 bool. You use 3 names and 2 bool's. From the looks of it, the signature looked like AddEntityCollideCallback.

Anyway, change it to this. This is just an example.
AddUseItemCallback("INTERNALNAME", "ITEMTOUSE", "ENTITYFORITEMTOUSE", "FUNCTION", true);
Change
INTERNALNAME to whatever you want the internal name to be.
ITEMTOUSE to the name of what item do you want to use.
ENTITYFORITEMTOUSE to what your entity's name that is used by item.
FUNCTION to whatever your function is.
Don't change the true.
REMEMBER TO USE QUOTATION MARKS ("") AROUND THE NAMES!

EDIT:
I noticed that you edit it. It got 6 arguments.

"Veni, vidi, vici."
"I came, I saw, I conquered."
(This post was last modified: 03-27-2013, 03:00 PM by PutraenusAlivius.)
03-27-2013, 02:55 PM
Find


Messages In This Thread
Script help - by Rakez68 - 03-27-2013, 01:36 PM
RE: Script help - by Adrianis - 03-27-2013, 01:56 PM
RE: Script help - by Rakez68 - 03-27-2013, 02:08 PM
RE: Script help - by Adrianis - 03-27-2013, 02:15 PM
RE: Script help - by Rakez68 - 03-27-2013, 02:46 PM
RE: Script help - by PutraenusAlivius - 03-27-2013, 02:55 PM
RE: Script help - by Rakez68 - 03-27-2013, 03:23 PM
RE: Script help - by PutraenusAlivius - 03-27-2013, 03:27 PM
RE: Script help - by Rakez68 - 03-27-2013, 03:39 PM
RE: Script help - by PutraenusAlivius - 03-27-2013, 03:40 PM
RE: Script help - by Rakez68 - 03-27-2013, 04:09 PM
RE: Script help - by Adrianis - 03-27-2013, 04:11 PM
RE: Script help - by Rakez68 - 03-27-2013, 04:50 PM
RE: Script help - by Adrianis - 03-27-2013, 05:44 PM



Users browsing this thread: 1 Guest(s)