Attempts to converts a given value into a pointer.



Argument Description
n The value to convert.

Returns: Pointer


This function will attempt to convert a given value into a pointer data type, 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.


if !is_ptr(val)

The above code checks the variable "val" to see if it contains a pointer and if it does not then one is assigned to it.

Back: Data Types
Next: pointer_null
© Copyright YoYo Games Ltd. 2018 All Rights Reserved