-
Notifications
You must be signed in to change notification settings - Fork 0
is_class
NikkoTC edited this page Sep 4, 2023
·
5 revisions
This function checks if the supplied value is a class.
is_class(val);
Argument | Description |
---|---|
val | The value to check |
Boolean
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.