GetWorkingForPlayer

From NWN Lexicon



Contents

[edit] GetWorkingForPlayer(object)

Returns if the henchman is working for the player.

int GetWorkingForPlayer(
    object oPC
);

[edit] Parameters

oPC

The PC to check if the henchman is working for.


[edit] Description

Returns TRUE if the local integer "NW_L_HIRED" + the tag of the henchman (OBJECT_SELF) is set to 10 on oPC. Otherwise it returns FALSE.



[edit] Remarks

Found in nw_i0_henchman.nss on line 120

The local integer in question, as far as I could tell, will also return 10 if the henchman has been working for oPC, but isn’t anymore.

Also note that this function uses OBJECT_SELF to identify the henchman, so it must go in a script / function owned by the henchman.


[edit] Requirements

#include " nw_i0_henchman "

[edit] Version

1.28

[edit] See Also

functions: 

SetWorkingForPlayer



 author: Lilac Soul, additional contributor(s): Lilac Soul
 

Personal tools
Categories