Wikia

NWNWiki

GetAILevel

Talk2
3,542pages on
this wiki

The GetAILevel() NWScript command returns the "intensity" at which the AI of a creature should be operating. (For non-creature objects, the returned level is "very low", not "invalid" as might be expected.)

BioWare uses this command to abort the standard OnHeartbeat event handler (nw_c2_default1) when the AI level is "very low" (typically meaning that the area can be considered "inactive" due to a lack of players seeing it).

Definition Edit

int GetAILevel (object oTarget=OBJECT_SELF)

object oTarget 
The object whose AI level is to be returned.

The return value is an AI_LEVEL_* constant. (For creatures whose AI was set to AI_LEVEL_DEFAULT, the level chosen by the default algorithm is returned, not AI_LEVEL_DEFAULT.)

See also Edit

Advertisement | Your ad here

Photos

Add a Photo
2,065photos on this wiki
See all photos >

Recent Wiki Activity

See more >

Around Wikia's network

Random Wiki