GetActionMode
From NWN Lexicon
Contents |
[edit] GetActionMode(object, int)
Check if a creature is using a given action mode
int GetActionMode( object oCreature, int nMode );
[edit] Parameters
oCreature
Creature to examine
nMode
[edit] Description
Gets the status of ACTION_MODE_* modes on a creature.
[edit] Remarks
Use the corrisponding SetActionMode() if the mode needs to be turned on/off.
These 3 functions:
- GetDetectMode()
- GetDefensiveCastingMode()
- GetStealthMode()
Still work fine.
[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, editor: Jasperre, additional contributor(s): Jasperre