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

How to cast value in script ?

Started by
1 comment, last by zopenge 16 years, 3 months ago
Example : AS script : int k = (int)1.0f; But I compile it with a error, it tell me except '(' Error Message. how to resolve this ? thanks
Advertisement
There are two alternatives in AngelScript:

int k = int(1.0f);


or

int k = cast<int>(1.0f);


AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

Oh, thanks so much ~~ it puzzle me a long time :))

This topic is closed to new replies.

Advertisement