ID:154901
 
How could I have only specified players see a particular mob?

I looked into outputting in the reference, but I guess that's purely visual, and won't allow me to dynamically control the mob that only certain players can see.
I don't believe there's a way to do this natively (though it's been requested.) Forum_account did make a library recently dealing with visibility groups that may be what you need.
Speedro wrote:
How could I have only specified players see a particular mob?

I looked into outputting in the reference, but I guess that's purely visual, and won't allow me to dynamically control the mob that only certain players can see.

As LordAndrew suggested, my Visibility Groups library can easily do this for you:

// the mob that only certain people can see:
mob/hidden
New()
vis = new(src)
vis.is_a("hidden mob")

// make only certain players able to see it:
mob
Login()
..()
vis = new(src)

if(this_player_can_see_the_mob)
vis.can_see("hidden mob")


The vis.is_a() proc adds the hidden mob to a visibility group. The vis.can_see() proc lets other mobs see that visibility group.