local destructable d local integer i=1 local unit ent call BJDebugMsg("try") loop exitwhen i>10 or d!=null call BJDebugMsg("wtf1")