View Full Version : Entities as NPCs
01-20-2004, 02:29 PM
What is the best way to determine if an entity is an NPC? Is it
01-20-2004, 03:47 PM
That works, so does...
if ( ent->s.eType == ET_NPC )
I seem to have used both in JMMod without any trouble. To be honest, I don't know why you would choose one over the other. Both are used in the SDK, maybe each is used by different programmers.
You might also want (for example)
if ( ent->client->NPC_class == CLASS_VEHICLE )
01-20-2004, 04:40 PM
It was more of a curiosity question mostly to see how everyone else does it, thanks for the reply though. :D
vBulletin®, Copyright ©2000-2015, Jelsoft Enterprises Ltd.