
Forum




wen man ne gutbomb schiest sol ein npc spawn
5 replies




vielleicht meinst du das :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
-- Projectile --
addhook("projectile","point.pro")
function point.pro(id,weapon,x,y)
if (weapon==53) then
parse("setweapon "..id.." 53")
parse("setpos "..id.." "..x.." "..y.."")
end
end
-- Spawn --
addhook("spawn","point.spawn")
function point.spawn(id)
parse("equip "..id.." 53")
end
1
2
3
4
2
3
4
addhook("projectile","spawnnpc")
function spawnnpc(id,weapon,x,y)
parse("spawnnpc 1 "..math.floor(x/32).." "..math.floor(y/32).." 0")
end

man müsste noch die if-bedingung mit weapon einbauen, welche hundesohn genannt hat.



