Skip to main content

DistanceBetweenPeds2D

Description

Calculates the horizontal (2D) distance between two pedestrian entities, ignoring vertical height differences.

function DistanceBetweenPeds2D(ped1, ped2) --[[ ... ]] end

Parameters

  • ped1: integer - The first pedestrian entity.
  • ped2: integer - The second pedestrian entity.

Return Values

  • dist: number - The 2D distance between the two peds.

Example

None.