Warhorse ScripBind documentation
ContentsIndexHome
PreviousUpNext
CScriptBind_AI::GetDistanceAlongPath Method
Syntax
C++
int GetDistanceAlongPath(IFunctionHandler * pH);
Parameters 
Description 
entityId1 
AI's entity1 id 
entityId2 
AI's entity2 id 

distance along entity1 path; distance value would be negative if the entity2 is ahead along the path

!

AI.GetDistanceAlongPath(entityId1, entityid2)

! returns the distance between entity1 and entity2, along entity1's path.!  

!  

!  

GetDistanceAlongPath

Copyright (c) 2012. All rights reserved.