
scope CastleSmall initializer init
	import ObjEditingNatives

	function init takes nothing returns nothing
		create_w3u_h00F()
	end

	@compiletime function create_w3u_h00F takes nothing returns nothing
		if compiletime
			let u = createObjectDefinition("w3u", 'h00F', 'hwtw')
			u.setString("uabi", "Aloc")
			u.setReal("usca", 0.6)
			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 Small")
			u.setString("utar", "none")
			u.setInt("ubdg", 0)
			u.setUnreal("ucol", 0.0)
			u.setInt("uhom", 1)
		else
			CreateUnit(Player(9), 'h00F', 3263.5, 4431.8, 206.900)
		end
	end
endscope
