I have a UID I pass to a function and I want to know if this is an instance of an object in a specific family (like is UID a member of the "enemy" family?).
thanks for your time.
Develop games in your browser. Powerful, performant & highly capable.
I don't think there are any way to check if an object is part of a family. But you can create them with a variable that you can use instead.
Yes it's possible, basically, if "pick familyA by UID" actually retrieve a familyA instance, then the UID refers to an object from the familyA, otherwise, it's not. Knowing that you can create a function for each family and end up with something like this : https://dl.dropboxusercontent.com/u/700 ... amily.capx
Thanks Magistross. It looks like that works.