scope Castle initializer init import ObjEditingNatives function init takes nothing returns nothing create_w3u_h008() end @compiletime function create_w3u_h008 takes nothing returns nothing if compiletime let u = createObjectDefinition("w3u", 'h008', 'hwtw') u.setString("uabi", "Aloc") u.setReal("usca", 1.3) u.setString("upat", "") u.setString("upap", "") u.setString("uubs", "") u.setString("umdl", "buildings\\human\\TownHall\\TownHall.mdl") u.setString("uani", "upgrade,second") u.setString("unam", "Castle") u.setString("utar", "none") u.setInt("ubdg", 0) u.setUnreal("ucol", 0.0) u.setInt("uhom", 1) else CreateUnit(Player(PLAYER_NEUTRAL_PASSIVE), 'h008', - 1672.4, 2578.0, 230.626) end end endscope