GetSpawnInCondition

From NWN Lexicon

Contents

[edit] GetSpawnInCondition(int)

Determines whether a creature has a certain condition set by BioWare's core AI system.

int GetSpawnInCondition(
    int nCondition
);

[edit] Parameters

nCondition

NW_FLAG_*


[edit] Description

Returns TRUE if nCondition is set on the creature that called this function (OBJECT_SELF) and otherwise returns FALSE.



[edit] Remarks

The spawn conditions are behaviours that can be set in the OnSpawn script of a creature that drive BioWare's core AI scripts to make the creature do certain things. It is advisable to uncomment the SetSpawnInConditon() lines in the default OnSpawn script and save it under a different name.

For an explaination of what NW_FLAG_* do, see the description for the individual constants.


[edit] Requirements

#include " x0_i0_spawncond "

[edit] Version

1.22

[edit] See Also

functions: 

SetSpawnInCondition

constants: 

NW_FLAG_* Constants

events: 

OnSpawn Event



 author: Charles Feduke, editor: Tom Cassiotis, Mistress
 

Personal tools
Categories