Sign in to follow this  

Learning angelscript

This topic is 4096 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
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

This topic is 4096 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this