SetBehaviorState

From NWN Lexicon

Contents

[edit] SetBehaviorState(int, int)

Sets an NPC's behavior.

void SetBehaviorState(
    int nCondition,
    int bValid = TRUE
);

[edit] Parameters

nCondition

NW_FLAG_BEHAVIOR_*

bValid

Status of nCondition behavior (on/off). (Default: TRUE)


[edit] Description

Behavior of NPC is turned on/off by use of bValid. Behaviors follow the NW_FLAG_BEHAVIOR_* constant list.



[edit] Known Bugs

Some reports of SetBehaviorState auto-switching bValid have been seen.


[edit] Requirements

#include " x0_i0_behavior "

[edit] Version

1.28

[edit] See Also

functions: 

GetBehaviorState

constants: 

NW_FLAG_BEHAVIOR_* Constants

events: 

OnSpawn Event



 author: Jody Fletcher, editor: Charles Feduke, Mistress, additional contributor(s): Kai
 

Personal tools
Categories