GetIsPlayerCharacter(object)

Check to see if target is PC and not DM.

int GetIsPlayerCharacter(
    object oTarget,
);

Parameters

oTarget

The object to check if it is a player and is not a DM.


Description

Check to see if target is PC and not DM.

Returns TRUE if oTarget is a PC (based on a call to GetIsPC) but is NOT a DM (based on a call to GetIsDM). Otherwise, returns FALSE.



Requirements

#include "nw_i0_plot"


Version

???

Example

// Lets' see if we are a PC and not a DM.
#include "nw_i0_plot"

void main()
{
   int nCheck = GetIsPlayerCharacter(OBJECT_SELF);
 
   switch(nCheck)
   {
      case 0:// Do stuff based on the face we are not a strictly PC character.
         break;
  
      case 1:// Do stuff based on the fact we are strictly a PC character.
         break;
   }
}

See Also

functions:  GetIsPC | GetIsDM
categories:  Get Data from Creature Functions | PC Only Functions


author: Baragg, editor: Mistress