---
name: "BIS_fnc_relScaledDist"
type: function
status: ok
groups: ["Geometry"]
arma3_since: "1.00"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_relScaledDist
revid: 349415
updated: 2023-11-08T16:27:30Z
---

# BIS_fnc_relScaledDist

*Function · Geometry · Arma 3 v1.00*

## Description

Exponentially inflated rational number between 0 and 1, with 1 being center and 0 being edge of the trigger. This function can be used to check where in a trigger area an object is. Is it near the border of the trigger area the number will go against 0.

## Syntax

```sqf
[referenceObject, relativeObject] call BIS_fnc_relScaledDist
```

**Parameters:**

- `referenceObject`: [Object](../topics/Object.md)
- `relativeObject`: [Object](../topics/Object.md)

**Returns:** [Number](../topics/Number.md)

## Examples

### Example 1

```sqf
[myTrigger, player] call BIS_fnc_relScaledDist;
```

## See also

[distance](../commands/distance.md) · [distanceSqr](../commands/distanceSqr.md)

<sub>Source: [BI Community Wiki — BIS fnc relScaledDist](https://community.bistudio.com/wiki/BIS_fnc_relScaledDist) (revision 349415).</sub>
