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

!

System.GetEntitiesInSphereByClass( centre, radius, EntityClass )

!  

!  

!  

! Gets all the entities contained into the specified sphere for the specific class name. 

!return a all entities for a specified entity class @return a table filled with all entities of a specified entity class in a radius

Copyright (c) 2012. All rights reserved.