native

entity_range

Syntax

native Float:entity_range(ida, idb);

Description

Returns the distance between two entities.

Parameters

ida Entity index 1
idb Entity index 2

Return

Distance between the entities

Error

If an invalid entity index is provided or, if either index is a
client index, that client is not connected, an error will be
thrown.