GetIsPlayerCharacter
From NWN Lexicon
Jump to navigationJump to search
GetIsPlayerCharacter(object)
Check to see if target is PC and not DM.
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 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;
}
}
#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: |
author: Baragg, editor: Mistress