PlayerWearsUniform

From NWN Lexicon



Contents

[edit] PlayerWearsUniform(object)

Checks if a PC has a certain uniform equipped.

int PlayerWearsUniform(
    object oPC
);

[edit] Parameters

oPC

Player to check for uniform.


[edit] 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.



[edit] 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.


[edit] Requirements

#include " nw_j_guard "

[edit] Version

1.28

[edit] See Also

functions: 

SetUniform



 author: Lilac Soul, editor: Mistress additional contributor: Lilac Soul
 

Personal tools
Categories