This function will attempt to convert a given value into a signed 64-bit integer, where the value must be either a real, a string, an int64, an int32, or a ptr. Anything else will cause the game to crash with an error message. You can check to see if a variable holds an int64 using the function is_int64().
int64(val);
Argument | Type | Description |
---|---|---|
val | Real, String, or Pointer | The value to convert. |
steam_handle = int64(global.fileReadString);
The above code converts the value held in the global variable to a 64bit integer.