SetSpawnInCondition

From NWN Lexicon
Jump to navigationJump to search



SetSpawnInCondition(int, int)

Sets custom flags that influence the default AI scripts provided by BioWare.

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

Parameters

nCondition

NW_FLAG_*

bValid

Turns the specified condition to TRUE or FALSE (on/off). (Default: TRUE)


Description

Sets the spawn flag (NW_FLAG_*) specified by nCondition to bValid.

See NW_FLAG_* for a detailed listing of the flags and their affect on the creature's AI.



Remarks

This uses bit arithmatic and is stored as a local integer to the creature calling this function (OBJECT_SELF).


Requirements

#include " x0_i0_spawncond "

Version

1.22

See Also

functions: 

PlayImmobileAmbientAnimations

constants: 

NW_FLAG_* Constants



 author: Charles Feduke, editor: Tom Cassiotis, Mistress