how can i check of which type they are if they're put into a family? (i'd like to skip checking for each object type :/ or creating 2 families)
the only way I know how to do it is to set an instance variable in the family and then when you create the object, set it's family instance to some sort of identifier. i.e. kind = "green"
so then in your function you would do:
if object.kind = "green" do this...
if object.kind = "blue " do this...
also if i got 2 items pinned to a object - can i destroy them in one event or do i have to check in each event separately (by getting them with UIDs) ?
you could pick each one, or use a container and they will automatically get deleted (and created) when you destroy/create any member of the container.