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

distance to the attention target (nil if no target)

!

AI.GetAttentionTargetDistance( entityId )

! returns the given entity's attention target's distance to the entity.!  

!  

 

Copyright (c) 2012. All rights reserved.