Overloading engine functions...

Posted By: seneca

Overloading engine functions... - 07/30/15 21:48

I'm not sure, but can you overload engine functions? If so, how?

I used to know how to do it with the old system back in the day, but it's been too long. I think....

Google and this forum doesn't return the results I need when I search, "overload" "engine functions" laugh.

I am trying to overload pan_setbutton command.

thanks for the help.
Posted By: Kartoffel

Re: Overloading engine functions... - 07/30/15 21:56

just create a new function with the same name but different parameters. Depending on the parameters you give the function when calling it, the engine decides which of them it has to use.

This also means that you cannot overload a function and use the same number and types of the parameters.
Posted By: seneca

Re: Overloading engine functions... - 07/31/15 15:57

Thanks, I remember it being easy, but I didn't think it was that easy...
© 2024 lite-C Forums