entity_intersects
Syntax
native bool:entity_intersects(entity, other);
Usage
| Parameter | Description |
|---|---|
| entity | Entity index 1 |
| other | Entity index 2 |
Description
Returns if two entities bounding boxes intersect by comparing their absolute minimum and maximum origins.
Return
True if entities intersect, false otherwise
Error
If an invalid entity index is provided, an error will be thrown.