I've got a trouble with it as you can guess
1
2
3
2
3
if object(1,"exists") then object(1,"x")=object(1,"x")+1 end
Scripts
setpos of buildings
setpos of buildings
1

if object(1,"exists") then object(1,"x")=object(1,"x")+1 end
Re: setpos of buildings
imagepos function, but 100% of the time, that leads to bugs. 5=5+1
function moveObject(old_x, old_y, new_x, new_y) 	old_id = objectat(old_x, old_y) 	if old_id == 0 then 		return 0 		-- Returns 0 when there's no object at < old > position. 	end 	ob_type = object(old_id, "type") 	ob_rot = object(old_id, "rot") 	ob_mode = object(old_id, "mode") 	ob_team = object(old_id, "team") 	ob_player = object(old_id, "player") 	ob_health = object(old_id, "health") 	killobject(old_id) 	spawnobject(ob_type, new_x, new_y, ob_rot, ob_mode, ob_team, ob_player) 	new_id = objectat(new_x, new_y) 	damageobject(new_id, object(new_id, "health") - ob_health, 0) 	-- Suggested by VADemon 	return new_id 	-- Returns the ID of the new object, just in case. end
moveObject(x, y, x+1, y)
Zeik: Even barricade has more than 100 health.
DCdamageobject(new_id, object(new_id, "health") - ob_health, 0)
VADemon: LOL. Yes!! you're right. Totally missed that.
VADemon:
game only works with simple game settings, not with advanced ones which have multiple parameters. The method signature with only one parameter (for the name of the setting) kind of implies this. I should add that detail to the documentation anyway.
1
