GetSpawnInCondition(int)

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

int GetSpawnInCondition(
    int nCondition
);

Parameters

nCondition

NW_FLAG_*


Description

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



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.


Requirements

#include "x0_i0_spawncond"

Version

1.22

See Also

functions: PlayMobileAmbientAnimations | SetSpawnInCondition
categories: Core AI Functions | Get Data from Creature Functions
constants: NW_FLAG_* Constants
events: OnSpawn Event


 author: Charles Feduke, editor: Tom Cassiotis, Mistress