AddHenchman(object, object)

From NWN Lexicon
Jump to: navigation, search

Adds a henchman NPC to a PC.

void AddHenchman(
    object oMaster,
    object oHenchman = OBJECT_SELF


The master PC to attach the henchman to.
The henchman to attach to oMaster. (Default: OBJECT_SELF)


Attaches oHenchman as a henchman to oMaster.

With the new command for HotU, SetMaxHenchmen(), this command can add more then 1 henchmen if the value of GetMaxHenchmen() is, of course, over 1.


This will add a henchman to the PC, but it won't make that NPC act as a henchman. For this to happen, it will need to have henchman scripts attached to its script properties. To attach BioWare's default henchman scripts, go to the scripts tab, press the "load script set" button, and select the henchman-related filename (the name of this may vary according to the expansions you have installed, for me it is called set_xp1_henchmen.ini and I have both expansions installed).

Known Bugs

Prior to patch 1.28, AddHenchman could be used to add other PCs or even the DM as a player's henchman.



See Also

functions:  GetMaxHenchmen, SetMaxHenchmen

author: Charles Feduke, editor: Jasperre, additional contributor(s): Lilac Soul, Jasperre