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

Target type value (AITARGET_NONE,AITARGET_MEMORY,AITARGET_BEACON,AITARGET_ENEMY etc) - see IAgent.h for all definitions of target types

Syntax: AI.GetTargetType(entityId) 

Returns the type of current entity's attention target (memory, human, none etc)

Copyright (c) 2012. All rights reserved.