GetAnimationCondition
From NWN Lexicon
Contents |
[edit] GetAnimationCondition(int, object)
Returns TRUE if the given creature has the given condition set.
int GetAnimationCondition( int nCondition, object oCreature = OBJECT_SELF );
[edit] Parameters
nCondition
The animation flag to check for.
oCreature
The object to check for the condition. (Default: OBJECT_SELF)
[edit] Description
Returns TRUE if the given creature has the given condition set.
[edit] Requirements
#include " x0_i0_anims "
[edit] Version
???
[edit] Example
// Check to see if the critter has the NW_ANIM_FLAG_CHATTER flag set. // If they do, tell them to hush up. #include "x0_i0_anims" void main() { // Test the flag int nCheck = GetAnimationCondition(NW_ANIM_FLAG_CHATTER, OBJECT_SELF); // It is set, so turn it off. if(TRUE == nCheck) { SetAnimationCondition(NW_ANIM_FLAG_CHATTER, FALSE, OBJECT_SELF); } }
[edit] See Also
functions: |
author: Baragg, editor: Mistress