Jump to content
  • Advertisement
Sign in to follow this  
GameEngineer_gi

Learning angelscript

This topic is 4307 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Ok so I'm a newbie and could not find a previous post on this question. How do you simple read a "property" or variable from a script file? Also, is there any other additional documentation or articles for AngelScript? I don't mean to be critical but I've found the documentation sort of lacking. Regards, Steve

Share this post


Link to post
Share on other sites
Advertisement
This is a known problem. ;) I'm trying to find the time to write some tutorials for the newcomers, but the problem is that it is just so much more interesting to implement new features than writing documentation.

If you want to access a property in the application from a script, then you must first register the property with the engine (see RegisterGlobalProperty).

On the other hand, if you want to access a global variable declared in a script from the application you can do so with the GetGlobalVarPointer method on the engine.

Feel free to ask anything.

Regards,
Andreas

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
LOL! I completely know you're position on the documentation! I write manufacturing tooling control software for a living and documentation is always lowest on my list.

Thanks for the very fast reply!

"more interesting to implement new features than writing documentation" !! you got that right! LOL

Oh, and i'll try the GetGlobalVarPointer and/or RegisterGlobalProperty.

Regards,
Steve

Share this post


Link to post
Share on other sites
I tried editing my last post but I forgot to log in so I am that "Anonymous Poster". :) Anyway what I was going to say was
that I forgot to mention that I am working on a set of "really simple", single file types of tutorials for the Game Institute. I'm going to show them to Adam Hoult for his blessing first before release but I can fire them off to you if you want them also. I know Lua but chose AngelScript for the tuts instead. So I'm having to learn a bit first. :)

Regards,
Steve

Share this post


Link to post
Share on other sites
It would be absolutely great to have a set of tutorials written by the community for the community.

Will the tutorials from Game Institute be free for everyone to access?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!