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

RegisterScriptString

Started by
0 comments, last by Tonin 17 years, 2 months ago
I feel like a fool. Been trying to sort this out myself to no avail so back I come! Is it necessary to call RegisterScriptString on your engine? The tutorial says "// Register the script string type" but I was not able to find any information on this in the docs. Any guidance would be awesome. Cheers
Advertisement
I'm just starting out myself, but it is my understanding that if you want to use string literals or the "string" data type in a script you need to register some type that acts like a string with the ScriptEngine object before building the script (or registering any types or functions that use the "string" type). The included asCScriptString class seems pretty good for most needs.

Hope that helps a bit,
~Andy

This topic is closed to new replies.

Advertisement