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

Access the value of a scripts variable?

Started by
0 comments, last by SharkBait 18 years, 9 months ago
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!!
Advertisement
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.
tIDE Tile Map Editorhttp://tide.codeplex.com

This topic is closed to new replies.

Advertisement