community, I was making this script, when you throw a smoke grenade armor, health and ammo should spawn, but the problem is the following: ERROR - "position is out of map bounds"1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
addhook("projectile","cmp")
function cmp(id,weapon,x,y)
if weapon == 53 then
	parse("spawnitem 61 "..x.." "..y.."")
	parse("spawnitem 62 "..x.." "..y.."")
	parse("spawnitem 58 "..x.." "..y.."")
	parse("spawnitem 64 "..x.." "..y.."")
	end
end
I know this happens because items can only spawn in tiles but not in pixels , is there a way of checking item tile pisiton?
Spawn item
1 
Offline
Primary Ammo