Ok, lets take another aproach.
I want to create a behavior that will spawn object, and type of object should be selected by string, rather then object picker.
I looked at sprit plugin, and found a spawn function that do 'Spawn another object' action. It leads to function in preview.js. It pass object type within a javascript object, so i need first to get this object type.
My guess is to find array that contain all object types and search required type by name (string) and then use default function to spawn new object.
Shouldnt be too hard, but i cant figure out where is object type array, so i could access them in plugin script. Also - object type name is uniqe per type? Becuase if not, i guess whole idea is dead.
May be some one know where is this array? Tnx for answers btw!