How do I check if a brick can be planted? Like check if the brick isn't in another brick, the ground, etc.
%name = %brick.getName();%brick.setName("TempName");%brick2 = new fxDTSbrick(:TempName);%brick.setName(%name);%plant = %brick2.plant();%brick2.delete();if(%plant == 0) %canplant = 1;else %canplant = 0;