GetDistanceFrom
Get distance from a id
Argument | Data Type | Needed | Default | Description |
---|---|---|---|---|
Type | string | - | The type of the id: Marker, marker, m or Object, object, o | |
Id | string/number | - | The id |
Returns
Data Type | Description |
---|---|
number | The distance of the marker or of the iObject |
Dont need to be called every frame
Example
GetDistanceFrom("marker", "myid")