ID:168820
 
I'm trying to have it to where for everyone in view of the player who killed the enemy who has a variable called DeathMsg at one to recieve a "[monster] has been killed by [src]!"

So, basically:

Bob kills Dragon.
For everyone in view with DeathMsg var at 1, display a message saying that Bob killed the Dragon.

I was thinking:
for(var/mob/players/M in view())
if(M.deathmsg)
M << "[src] has killed [monster]"


[edit] Yes, it works.
did that work??
In response to Killerdragon
lol i put another message with it, like world << "Everyone hears a faint Screech as a [src] Dies"