Access the value of a scripts variable?
May seem like a simple and easy to answer question, but I've been though the docs for AngelScript, and can't seem to find out how to get the value of a scripts variable from the host application. I can get the ID to the variable with GetGlobalVarIDByName(...), but can't seem to find anything to do with the ID. Any ideas?
Thanks!
CD
Jesus is Lord!!
Check this method:
http://www.angelcode.com/angelscript/sdk/docs/appmanual/pages/ref_engine.html#varpointer
all you need to do is give it the ID and you get back a void pointer to the variable. Cast it to the required type and dereference it as needed.
http://www.angelcode.com/angelscript/sdk/docs/appmanual/pages/ref_engine.html#varpointer
all you need to do is give it the ID and you get back a void pointer to the variable. Cast it to the required type and dereference it as needed.
tIDE Tile Map Editorhttp://tide.codeplex.com
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement