Amxxprogramer / EngFunc_FindEntityInSphere.txt
RichieBurundi's picture
Upload 29 files
ea562e8 verified
raw
history blame
831 Bytes
Fakemeta function:
PHP Code:
EngFunc_FindEntityInSphere
Description:
Find entities within a radius. The function returnes the next entity id after the start entity!
This is a drawing to show how this function works:
[IMG]http://img265.**************/img265/2395/screenshot053.png[/IMG]
If we use
PHP Code:
engfunc(EngFunc_FindEntityInSphere, -1, origin, radius)
The function in the situation above will return 1!
PHP Code:
engfunc(EngFunc_FindEntityInSphere, 20, origin, radius)
The function in the situation above will return 30!
PHP Code:
engfunc(EngFunc_FindEntityInSphere, 100, origin, radius)
The function in the situation above will return 0, meaning that it didn't find an entity with an id grater than 100!
Usage:
PHP Code:
engfunc(EngFunc_FindEntityInSphere, ent_to_start, origin, radius)