Warhorse ScripBind documentation
ContentsIndexHome
PreviousUpNext
CScriptBind_AI::GetTargetType Method
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. !

!

AI.GetTargetType(entityId)

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

!

Copyright (c) 2012. All rights reserved.