my problem is simple...
i want to add a stun effect for a snowball projectile which i spawned with spawnprojectile like this
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function attack2hook(id, weapon) 	if (weapon == 50) then 		parse("spawnprojectile " .. id .. " 75 " .. player(id,"x") .. " " .. player(id,"y") .. " 500 " .. player(id, "rot")) 	end end function hithook(id, weapon) 	if (weapon == 75) then 		parse("speedmod " .. id .. " " .. player(id, "speedmod") - 15) 		msg("weapon hit found") 	end end addhook("attack2", "attack2hook") addhook("hit", "hithook")
...but it doesnt work
the attack2 hook works fine, but the hit hook cant find a hit of a snowball...
i tested it with a message "weapon hit found" but this message wasnt triggered.
my theory is that this projectile has another weapon id, but which?
thanks for answers