GetBeenHired

From NWN Lexicon



Contents

[edit] GetBeenHired(object)

Checks if a henchman has been hired.

int GetBeenHired(
    object oTarget = OBJECT_SELF
);

[edit] Parameters

oTarget

The henchman to check (Default: OBJECT_SELF)


[edit] Description

Returns TRUE if the henchman has been hired before (determined by checking for a local variable, set with the SetBeenHired command). Returns FALSE in all other instances, including if oTarget isn't valid.

From the source code documentation:
Henchmen can only be hired once, ever.
This checks or sets the local on the henchmen
that keeps track whether they've ever been hired.



[edit] Remarks

Found in nw_i0_henchman: line 109


[edit] Requirements

#include " nw_i0_henchman "

[edit] Version

1.28

[edit] See Also

functions: 

SetBeenHired



 author: Lilac Soul
 

Personal tools
Categories