IsBusy
From NWN Lexicon
Contents |
[edit] IsBusy()
Determines whether an associate is busy.
[edit] Description
Determines whether an associate is busy with combat or other tasks.
[edit] Remarks
This checks local ints that were set up by other associate functions. SetIsBusy can be used to set a henchmen to busy (like when unlocking an object).
[edit] Requirements
#include " nw_i0_assoc "
[edit] Version
1.22
[edit] Example
// 1.24 source for this function int IsBusy() { // * if no valid attack targets then I am not in combat if (GetIsObjectValid(GetAttackTarget()) == FALSE && GetIsObjectValid(GetAttemptedAttackTarget()) == FALSE && GetLocalInt(OBJECT_SELF,"NW_ASSOCAMIBUSY") == FALSE) { return FALSE; } return TRUE; }
[edit] See Also
functions: |
author: Tom Cassiotis