[Solved] How to apply actions for a specific instance of an object?

There’s an ‘Instance Variables’ window for every instance:


I set specific IDs for every instance of some object and want to apply actions separately, like:
if (object.id == 0) then do smth1;
if (object.id == 1) then do smth2;
I am trying this:

But cat.Variable() returns a common object’s variable, not an instance’s one, right? Because I have two cat’s instances and that actions are applying to both of them.

So how to make the actions to apply for a specific instance only?

As far as I know, the compare two numbers condition does not do object selection.

Just use the “value of an object variable” condition, and it will select only object instances that match the value you populate.

2 Likes

This works, thank you.