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
Display messages
MulleDK19 Offline
Senior Member

Posts: 545
Threads: 21
Joined: Jun 2009
Reputation: 10
#13
RE: Display messages

(02-08-2013, 05:58 PM)BeeKayK Wrote: It does Wink

Those parameters specify what kind of function you want to use, and if you have them wrong, no function will be called.

(string &in asEntity) = Interaction function
(string &in asParent, string &in asChild, int alState) = Collide function

For more information check this: http://www.frictionalgames.com/forum/thread-18368.html

I'm not asking you. I'm telling you. I've been programming for a very long time. Only the types matter. The names of the parameters on the wiki is only to help you know what they're for.

When the wiki states a callback signature like:
void MyFunc(string &in asParent, string &in asChild, int alState)

It's just stating that it's looking for a function returning void, and accepting 3 parameters: string, string, int.

What you name them in your script does not matter whatsoever.

This will work just as well:
void MyFunc(string &in entity1, string &in entity2, int state)

Or for that matter:
void MyFunc(string &in x1, string &in x2, int x3)

[Image: 16455.png]
(This post was last modified: 02-08-2013, 06:04 PM by MulleDK19.)
02-08-2013, 06:02 PM
Find


Messages In This Thread
Display messages - by tonitoni1998 - 02-08-2013, 05:05 PM
RE: Display messages - by MulleDK19 - 02-08-2013, 05:06 PM
RE: Display messages - by tonitoni1998 - 02-08-2013, 05:09 PM
RE: Display messages - by MulleDK19 - 02-08-2013, 05:09 PM
RE: Display messages - by tonitoni1998 - 02-08-2013, 05:11 PM
RE: Display messages - by MulleDK19 - 02-08-2013, 05:12 PM
RE: Display messages - by tonitoni1998 - 02-08-2013, 05:17 PM
RE: Display messages - by MulleDK19 - 02-08-2013, 05:21 PM
RE: Display messages - by tonitoni1998 - 02-08-2013, 05:24 PM
RE: Display messages - by FlawlessHappiness - 02-08-2013, 05:47 PM
RE: Display messages - by MulleDK19 - 02-08-2013, 05:48 PM
RE: Display messages - by FlawlessHappiness - 02-08-2013, 05:58 PM
RE: Display messages - by MulleDK19 - 02-08-2013, 06:02 PM
RE: Display messages - by FlawlessHappiness - 02-08-2013, 06:05 PM
RE: Display messages - by MulleDK19 - 02-08-2013, 06:05 PM
RE: Display messages - by Tiger - 02-08-2013, 06:09 PM
RE: Display messages - by MulleDK19 - 02-08-2013, 06:10 PM
RE: Display messages - by FlawlessHappiness - 02-08-2013, 06:11 PM
RE: Display messages - by tonitoni1998 - 02-08-2013, 11:06 PM



Users browsing this thread: 3 Guest(s)