SetActionMode
From NWN Lexicon
Contents |
[edit] SetActionMode(object, int, int)
Sets the status of an action mode on a creature
void SetActionMode( object oCreature, int nMode, int nStatus );
[edit] Parameters
oCreature
Creature to set the action mode on
nMode
nStatus
TRUE or FALSE
[edit] Description
Sets the status of modes ACTION_MODE_* on a creature.
[edit] Version
1.61
[edit] Example
//Make PC exit stealth mode if currently stealthy void main() { object oPC=GetEnteringObject(); if (GetActionMode(oPC, ACTION_MODE_STEALTH)==TRUE) SetActionMode(oPC, ACTION_MODE_STEALTH, FALSE); }
[edit] See Also
functions: | |
constants: |
author: Lilac Soul