1.1 features a new function for clientside entities called getClosest, it returns by default the first, closest entity, or takes a second parameter if you want to return multiple.
It returns an array of the entities present, or an empty array if none are present.
1.1 features a new function for clientside entities called
getClosest
, it returns by default the first, closest entity, or takes a second parameter if you want to return multiple.It returns an array of the entities present, or an empty array if none are present.