I'm trying to make an event to create random objects from a family, but limited to the objects with a specific instance variable value.
I have X amount of objects in a family called Objects. The family has an instance variable called CanBuild.
If an object's CanBuild variable is 1 you can create it, if not you can't.
I've set the CanBuild variable to 1 in one of the objects and 0 in the rest.
I've made following event:
On touched (create button) ---> Subevent ---> Pick Objects where Objects.CanBuild = 1 --->Subevent---> Create object.
But it doesn't create the object. If I remove the Pick Objects condition it just creates a random object from the Objects family.
Any ideas how to do this? I hope it's clear enough.