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: GetUniform | SetUniform
categories: Get Data from Object Functions | Module Specific Functions


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