GetIsPlayerCharacter

From NWN Lexicon


Contents

[edit] GetIsPlayerCharacter(object)

Check to see if target is PC and not DM.

[edit] Parameters

oTarget

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


[edit] Description

Check to see if target is PC and not DM.

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



[edit] Requirements

#include " nw_i0_plot "


[edit] Version

???

[edit] 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;
   }
}

[edit] See Also

functions: 

GetIsDM



author: Baragg, editor: Mistress

Personal tools
Categories