How to cast value in script ?
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
There are two alternatives in AngelScript:
or
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement