1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
local img = image("gfx/cat.png",128,128,1) local hita = imagehitzone(img,101,-32,-32,64,64) addhook("hitzone","shoot") function shoot(imgid,pid,obid,wpn,imx,imy) -- what should i do now ? also i want to make an healt bar it should be decrease when i attack the image. --Thanks