| Property | Value |
|---|---|
| Native Name | HAS_ENTITY_CLEAR_LOS_TO_ENTITY |
| Hash | 0xFCDFF7B72D23A1AC |
| Return Type | BOOL |
| Parameters | entity1 (Entity), entity2 (Entity), flags (int) |
Description: Checks if entity1 has a clear line of sight to entity2. So a simple raycast which if it collides with any of the given colliderTypes returns false.
The direction of the check matters with for example bushes, so checking from inside to outside a bush with traceType 256 returns true, but the other way around returns false.
Parameters
entity1(Entity) — Entity to start fromentity2(Entity) — Entity to check toflags(int) — A bit mask with bits 1, 2, 4, etc, relating to collider types (see: START_EXPENSIVE_SYNCHRONOUS_SHAPE_TEST_LOS_PROBE). 17 is most common in GTA scripts.