SetCommandingPlayer(object, object)
From NWN Lexicon
Jump to navigationJump to searchMakes oCreature controllable by oPlayer, if player party control is enabled.
Parameters
- oCreature
- The creature to make controllable.
- oPlayer
- The player to give control.
Description
Makes oCreature controllable by oPlayer, if player party control is enabled. Setting oPlayer=OBJECT_INVALID removes the override and reverts to regular party control behavior
NB: A creature is only controllable by one player, so if you set oPlayer to a non-Player object (e.g. the module) it will disable regular party control for this creature.
Remarks
Version
This function was added in 1.87.8193.35 of NWN:EE.
Example
See Also
author: Shadguy