View source for Script/BasicDataTypes

Jump to: navigation, search

You do not have permission to edit this page, for the following reason:

The action you have requested is limited to users in the group: Users.


You can view and copy the source of this page.

Return to Script/BasicDataTypes.

Basic Data Types

type min value max value
int8 -128 127
int16 -32,768 32,767
int -2,147,483,648 2,147,483,647
int64 -9,223,372,036,854,775,808 9,223,372,036,854,775,807
uint8 0 255
uint16 0 65,535
uint 0 4,294,967,295
uint64 0 18,446,744,073,709,551,615

The '?' Type

A question mark (?) in place of a regular type name in AngelScript means that any type may be passed in place of that type.
For those familiar with C++, this is the equivalent of void*.

When storing a value as ?, the type of the value is lost. In order to interact with the value again, it must be cast back into the original type. Casting it into anything other than the original type will most likely result in the program crashing.