Warhorse ScripBind documentation
ContentsIndexHome
PreviousUpNext
CScriptBind_AI::IsTakingCover Method
Syntax
C++
int IsTakingCover(IFunctionHandler * pH);
Parameters 
Description 
entityId 
AI's entity 
distanceThreshold 
(optional) distance over which if the agent is running to cover, he won't be considered as taking cover 

! true - Agent is either in cover or running to cover ! nil - if not !

!

AI.IsTakingCover(entityId, [distanceThreshold])

!  

!  

!  

IsTakingCover

Copyright (c) 2012. All rights reserved.