Warhorse ScripBind documentation
ContentsIndexHome
PreviousUpNext
GetNearestHidespot
Syntax
C++
int GetNearestHidespot(IFunctionHandler * pH);
Parameters 
Description 
entityId 
AI's entity id 
rangeMin 
specifies the min range where the hidepoints are looked for. 
rangeMax 
specifies the max range where the hidepoints are looked for. 
centre 
(optional) specifies the centre of search. If not specified, the entity position is used.
 

Syntax: AI.GetNearestHidespot(entityId, rangeMin, rangeMax [, center]) 

Returns position of a nearest hidepoint within specified range, returns nil if no hidepoint is found.

Copyright (c) 2012. All rights reserved.