is_visible
- Синтаксис
-
native is_visible(entity, target);
Переменная | Описание |
---|---|
entity |
Entity index |
target |
Target entity index |
- Описание
- Returns if an entity is visible to another entity. Derived from SDK.
- Пометка
-
If the target entity has the FL_NOTARGET flag set, this native always returns 0.
- Пометка
-
This native fires a traceline between the view-offset origins of the entities. If the traceline is unobstructed it returns true. This is not a full 3D visibility check.
- Возвращает
- 1 if entity is visible, 0 otherwise