Skip to content

is_class

NikkoTC edited this page Sep 4, 2023 · 5 revisions

This function checks if the supplied value is a class.


Syntax

is_class(val);
Argument Description
val The value to check

Returns

Boolean


Example

if(is_class(carClass))
{
	var carColor = make_color_rgb(255, 127, 0);
	inst = create(carClass, carColor);
}

The above code will check if carClass is a class, and if the function returns true, then it creates the class instance.