native

entity_intersects

Syntax

native bool:entity_intersects(entity, other);

Description

Returns if two entities bounding boxes intersect by comparing their absolute
minimum and maximum origins.

Parameters

entity Entity index 1
other Entity index 2

Return

True if entities intersect, false otherwise

Error

If an invalid entity index is provided, an error will be
thrown.