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 |