Hi can anyone help me make a shooting npc.
he is my shoot verb
Shoot()
if(src.Ammo <= 1)
src << "Not enough Ammo to fire"
return // stop the verb
src.Ammo -= 1
icon_state = "Shooting"
var/obj/A = new /obj/Bullet (src.loc)
A.dir = src.dir
walk(A,A.dir,1)
sleep(10)
icon_state = ""
del(A)
Copyright © 2025 BYOND Software.
All rights reserved.
You need an AI proc which moves all of the NPCs, and calls their shoot verbs/procs when necessary.