IsInRadius
Check the distance between 2 coords and return true if is in radius
Argument | Data Type | Needed | Default | Description |
---|---|---|---|---|
Coords 1 | vector3 | - | The first coords (probably the entity coords) | |
Coords 2 | vector3 | - | The second coords | |
Radius | number | - | The distance to check | |
Sphere | boolean | false | Draw a sphere of the radius |
Returns
Data Type | Description |
---|---|
boolean | If is in the radius |
Dont need to be called every frame
Example
local near = IsInRadius(GetEntityCoords(entity), vector3(0.0,0.0,0.0), 10.0)
Last update: April 12, 2022
Created: January 6, 2022
Created: January 6, 2022