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


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
More scripting errors. Please help!
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#2
RE: More scripting errors. Please help!

Callback functions for item use on an entity require two parameters. Your function KeyOnDoor will need a second parameter. The first is the item reference (which item was used by the player), while the second is the entity reference (the entity the item was used on). Change your parameters -- the statements in the parenthesis directly following your function name (in this case, it is KeyOnDoor) -- to reflect this.

(This post was last modified: 03-16-2012, 08:33 PM by palistov.)
03-16-2012, 08:33 PM
Find


Messages In This Thread
RE: More scripting errors. Please help! - by palistov - 03-16-2012, 08:33 PM



Users browsing this thread: 1 Guest(s)