Warhorse ScripBind documentation
ContentsIndexHome
PreviousUpNext
GetDistanceAlongPath
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 

GetDistanceAlongPath

Syntax: AI.GetDistanceAlongPath(entityId1, entityid2) 

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

Copyright (c) 2012. All rights reserved.