Warhorse ScripBind documentation
ContentsIndexHome
PreviousUpNext
GetTargetThreat
Syntax
C++
int GetTargetThreat(IFunctionHandler * pH);
Parameters 
Description 
entityId 
AI's entity id 

Target threat type value (AITHREAT_NONE, AITHREAT_INTERESTING, AITHREAT_THREATENING, or AITHREAT_AGGRESSIVE) - see IAgent.h for all definitions of target threat types

Syntax: AI.GetTargetThreat(entityId) 

Returns the threat type of current entity's attention target.

Copyright (c) 2012. All rights reserved.