obj
Turret
New()
.=..()
spawn(1)
Attack()
proc/Attack()
FireSpread(src, src:target, src:bullettype, src:pellets, src:spread)
spawn(30)
Attack()
How do I get the object to target anyone on another team by itself and stop targeting them when the user is out of range?
For that to work you need to change attack from a verb to a proc and call it from the verb: