Not really a problem, but I was wondering why you have to use callback syntax when scripting. I have never had any problems with it its just that i'm curios to why it is needed or what it does. Ex: The callback syntax for "AddEntityCollideCallback" would be "(string &in asParent, string &in asChild, int alState)". Thanks in advance!
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
(12-01-2013, 02:38 PM)FlawlessHair Wrote: [ -> ]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
Awesome reply, Thanks! I understand now.
