I try to pass a struct and a number to a function called with "engine_callscript4". Right now this looks like this
Code:
// Caller func
void Baa( long Foo, AG_Window* Window, var EventType )
{
if( Foo!=NULL )
{
engine_callscript4( Foo, Window, EventType, 0, 0 );
}
}
// Called func
void xXx( AG_Window* Window, var EventType )
{
printf( "%d", EventType );
}
I know that this can't work, so my question is how to pass a copy of the class and a var to the function.
Thanks in advance.