I've created this :
https://i.imgur.com/tujqMKW.jpgMy goal is that whatever hits the circle, within the circle or anything behind it; doesn't get damaged.
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
addhook("spawn", "OverCharacter")
function OverCharacter(id)
	if player(id,"team") == 1 then
	freeimage(id)
	id=image("gfx/sprites/flare2.bmp",1,1,100+id)
	imagehitzone(id,104)
	end
end
addhook("hitzone", "ShotFlare")
function ShotFlare(NEED HELP AT THIS PART)
I've looked up on
http://www.cs2d.com/help.php?hookcat=all&hook=hitzone#hookand got confused on these parameters
image id: dynamic object id of image with hitzone
player id: id of player who shot (or player who built the shooting object)
id of dynamic object that shot (or 0 if shot is from a player)
impact x: impact x position (in pixels)
impact y: impact y position (in pixels)I don't know what to write on these parameters
Hitzone Hook
1 
Offline