PlayerWearsUniform
From NWN Lexicon
Jump to navigationJump to search
PlayerWearsUniform(object)
Checks if a PC has a certain uniform equipped.
int PlayerWearsUniform(
object oPC
);
Parameters
oPC
Player to check for uniform.
Description
Returns TRUE if oPCâs equipped uniform has the correct tag, as determined by the function GetUniform() ; Returns FALSE in all other cases, including errors.
Remarks
Found in nw_j_guard.nss line 130
Though Biowareâs way of doing this may be of little use to the rest of us, it can still be a good way to learn how to make guards that attack the player if he isnât wearing the correct uniform.
Requirements
#include " nw_j_guard "
Version
1.28
See Also
| functions: |
author: Lilac Soul, editor: Mistress additional contributor: Lilac Soul