Skip to content

inst_get_class

NikkoTC edited this page Sep 4, 2023 · 5 revisions

With this function you can get class ID of a given class instance.


Syntax

inst_get_class(inst);
Argument Description
inst The class instance struct

Returns

Real (The unique class ID)


Example

var cls = inst_get_class(inst);
var newInst = create(cls);

The above code will get the class ID from the instance and then create a new class instance.