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
Callback Syntax
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#2
RE: Callback Syntax

It's for the editor to understand what parameters that are in play at the moment.
See, when using (string &in asParent, string &in asChild, int alState) it's about 1 entity (asParent) colliding with another entity (asChild), and how they are colliding (alState).


In your function you can then use if-statements like:
if(alState == -1)
{
//DO SOMETHING WHEN asPARENT WALKS OUT OF asCHILD
}


-1 equals that the function will only call if asParent walks out of asChild.


this might help you:
http://www.frictionalgames.com/forum/thread-18368.html

Trying is the first step to success.
12-01-2013, 02:38 PM
Find


Messages In This Thread
Callback Syntax - by saito100 - 12-01-2013, 08:01 AM
RE: Callback Syntax - by FlawlessHappiness - 12-01-2013, 02:38 PM
RE: Callback Syntax - by saito100 - 12-01-2013, 08:53 PM



Users browsing this thread: 1 Guest(s)