SphereCommunity

Full Version: Limitation to Dead People
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi there!

I just wonder if it is possible to prevent dead people from seeing some kind of npcs? For instance, if a player is dead, he wont be able to see a dragon of an id c_dragon_green even its standing near him.

Thanks for your help in advance,
basics.
USE @CLICK and REMOVEFROMVIEW
so, should it be like that

on=@click
if (<src.hits>=0) // if the player is a ghost (or this could be a body check)
removefromview // dont show the npc
endif

is that ok?

I think using @environchange is more useful isnt it?
in the wiki it's written that removefromview remove the item/char for all nearby clients :\
[FUNCTION SingleRemoveFromView]
SENDPACKET 01d D<ARGS>

You can use this function for single-player removefromview...
Example:

on=@click
src.singleremovefromview <uid>

Will remove <default> from <src> view
Could you give an example with a npc id so I can clearly understand?
You don't need an NPC id, the <uid> is triggered under the @click so it will automatically fill in said creature, if you re wanting to limit it to certain types simply do:

Code:
ON=@Click
if <body>==0D0  //chicken
   src.singleremovefromview <uid>
endif
Reference URL's