I have few questions about this function
PHP Code:
engfunc(EngFunc_FindEntityInSphere, -1, origin, radius)
How can i use it efficiently to detect if a wall is at an x or y distance from an origin ?
Will this following be efficient since:
1. it doesn't have a defined radius from the beginning, and it will check a very large area
2. it doesn't have a certain entity to search for so it will detect and others before checking for func_wall
PHP Code:
engfunc(EngFunc_FindEntityInSphere, -1, origin, radius)
if( entity class name = func_wall
{
if(radius < x)
{
do this
}
else if(radius < y)
{
do this
}
else
{
do that
}
}