🎉 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()

Started by
1 comment, last by Seppl 15 years, 9 months ago
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?
Advertisement
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);




AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

Thank you.

This topic is closed to new replies.

Advertisement