Turret for my zombiesurvival

i would like to have a gun that spawn a turret and the turret can have a beam and when a zombie touch the beam the turret start to aiming in the head and shooting. The turret would need ammo inside and you have to put your own ammo in when u press “e” on it with a rifle. The turret need like 300 hp and it would just attack zombie npcs and zombie players . If anyone can help me , i would be so happy.

[editline]10:19AM[/editline]

and the damage and kills that do would be mine , like it say Fearlesskiller (killicon) player123.

anyone reply please , something ?

[editline]03:01PM[/editline]

the turret need the hl2 model and animation and the beam follow the animations

Please any1 help me i really need this code to have fun !!!

you should post it in the request section

ok i will , thanks for advice

Use the friendly portal turret.

Or code it using Traces and setting angle of turret.

This is the lua section afterall.

well im going to learn lua , so thread closed no one answer , i will never answer back