🎉 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!

Automatically suspend after calling registered function

Started by
1 comment, last by SiCrane 15 years, 7 months ago
Is it possible in AngelScript to register a function such a way that the virtual machine will automatically suspend itself after the function is called?
Advertisement
Yes. Example:

// C++void Suspend(){  asIScriptContext *ctx = asGetActiveContext();  if( ctx )    ctx->Suspend();}


Regards,
Andreas

[Edited by - WitchLord on December 8, 2008 7:33:37 AM]

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

That seems to work great. Thanks.

This topic is closed to new replies.

Advertisement