ID:162375
 
I was curious as what to use when I want to make a verb (ie an attack) to effect all the players on the screen. I know how to target one person at a time, but not everyone at the same time.
mob/verb/explode()
view() << "[usr] explodes!"
for(var/mob/M in oview(src))
del(M)
In response to Garthor
Notice if you wish to attack EVERYONE you will have to use view, because oview cuts out the src.
In response to Obs
If you used view() then you'd potentially end up deleting yourself before you've hit everybody else. You'd have to put del(src) outside the for() loop if you wanted to do that.
In response to Obs
Well, I hadn't planned on attacking myself >.>