Page 1 of 1

detect NPC user

Posted: 18 Nov 2010, 09:39
by shlomi
hi,

i'm using the 1.x version.

do someone know how i can't detect if user in some room is a NPC user or regular user?
function like isNPC() doesn't exists in the User class or any where else..

thanks..

Posted: 18 Nov 2010, 10:14
by TiagoR
Hi,
you can add a user variable to your NPCs on creation, identifying if it is a server NPC or a client NPC. And then when needed you check that variable.

Posted: 18 Nov 2010, 10:24
by shlomi
this is what i tough in the beginning.. i just wanted to figure out if there is something built in SFS to check that..

thanks anyway dude..