🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
RegisterGlobalFunction()
Hi.
I'm working on a game using AS for scripting.
I want the map editor to save bytecode to the map files and the game engine to load an execute it. The problem is, that I want to RegisterGlobalFunction()s of the game engine that the editor doesn't know of...
Any idea?
Since the map editor isn't going to execute the scripts, you can register the engine's functions using null pointers, example:
engine->RegisterGlobalFunction("void function", asFUNCTION(0), asCALL_CDECL);
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement