Warhorse ScripBind documentation
ContentsIndexHome
PreviousUpNext
CanMoveStraightToPoint
Syntax
C++
int CanMoveStraightToPoint(IFunctionHandler * pH);
Parameters 
Description 
entityId 
AI's entity id 
position 
the position to check 

true if the position can be reached in a straight line 

CanMoveStraightToPoint

Syntax: AI.CanMoveStraightToPoint(entityId, position) 

Returns true if the entity can move to the specified position in a straight line (no multiple segment path necessary)

Copyright (c) 2012. All rights reserved.