GetBeenHired

From NWN Lexicon
Jump to navigationJump to search



GetBeenHired(object)

Checks if a henchman has been hired.

int GetBeenHired(
    object oTarget = OBJECT_SELF
);

Parameters

oTarget

The henchman to check (Default: OBJECT_SELF)


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.



Remarks

Found in nw_i0_henchman: line 109


Requirements

#include " nw_i0_henchman "

Version

1.28

See Also

functions: 

SetBeenHired



 author: Lilac Soul