I want the script like that:
If i destroy a "Env_Breakable" a item appear, like money or a weapon.
I need this script!
Thanks.
Scripts
Object kill script
Object kill script
1

addhook("break","getitem")
function getitem(x,y)
	parse("spawnitem 10 "..x.." "..y) -- 10 is the weapon ID, in this case, the M3
end
Re: Object kill script
addhook("break","getitem")
function getitem(x,y)
parse("spawnitem 10 "..x.." "..y) -- 10 is the weapon ID, in this case, the M3
end
addhook("break","getitem")
function getitem(x,y)
parse("spawnitem 10 "..x.." "..y) -- 10 is the weapon ID, in this case, the M3
end
R a G e, uhhh, no. addhook("break","getitem")
	function getitem(x,y)
		if (x == 1 and y == 48) then
		parse("spawnitem 1 1 48")
	end
		if (x == 11 and y == 48) then
		parse("spawnitem 3 11 48")
	end
end
1
