DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ VisEntities()

proto int VisEntities ( vector origin,
vector look,
float angle,
float radius,
out IEntity ents[2],
int maxents,
int fmask )

finds all visible entities (rought, according to a visibility. It is convinient for entitie selection where we want to do more precise visibility test)

Аргументы
origin- position it is looked from
look- look direction
angle- view angle (usuably 90). -1 if we do not care about the view angle
ents- array to which entities will be stored
maxents- length of the array (prevents overflowing the array)
fmask- flag mask (SetFlags()). Entity must have all flags set. it is possible to use reserved flags like EntityFlags.USER1, EntityFlags.USER2, EntityFlags.USER6 for fast finding of entities in custom categories