Warhorse ScripBind documentation
ContentsIndexHome
PreviousUpNext
GetNearestEntityByClass
Syntax
C++
int GetNearestEntityByClass(IFunctionHandler * pH, Vec3 center, float radius, const char * className);
Parameters 
Description 
float radius 
Radius of the sphere. 
const char * className 
Entity class name. 
centre 
Centre position vector for the area where to look at entities. 

Syntax: System.GetNearestEntityByClass( centre, radius, className ) 

Gets the nearest entity with the specified class.

Copyright (c) 2012. All rights reserved.