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
Scripting help
EvilDeadPunk Offline
Junior Member

Posts: 3
Threads: 1
Joined: Jul 2013
Reputation: 0
#3
RE: Scripting help

(07-19-2013, 05:05 AM)Tomato Cat Wrote: This is also an issue:

PHP Code: (Select All)
{
AddUseItemCallback("""cellar_key_1""cellar_1""UsedKeyOnDoor"true);


A callback needs to be declared in another function (onstart, etc) for it to work.

I don't think writing it like above generates a compiler error (provided there are no curly braces), but the AddUseItemCallback function itself won't ever be called.

It was actually not a part of the coding that I posted, except I was missing a function. The error was being caused by a semi-colon and missing braces in the "OnEnter" section.
(This post was last modified: 07-19-2013, 07:46 AM by EvilDeadPunk.)
07-19-2013, 07:42 AM
Find


Messages In This Thread
Scripting help - by EvilDeadPunk - 07-19-2013, 03:36 AM
RE: Scripting help - by Tomato Cat - 07-19-2013, 05:05 AM
RE: Scripting help - by EvilDeadPunk - 07-19-2013, 07:42 AM
RE: Scripting help - by No Author - 07-19-2013, 10:21 AM
RE: Scripting help - by EvilDeadPunk - 07-19-2013, 04:57 PM



Users browsing this thread: 1 Guest(s)