---
name: "BIS_fnc_richCurve_getKeyIndex"
type: function
status: ok
groups: ["RichCurve"]
arma3_since: "1.78"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_richCurve_getKeyIndex
revid: 279144
updated: 2021-06-13T21:49:18Z
---

# BIS_fnc_richCurve_getKeyIndex

*Function · RichCurve · Arma 3 v1.78*

## Description

Get's the index of given key in given curve

## Syntax

```sqf
[] call BIS_fnc_richCurve_getKeyIndex
```

**Parameters:**

- `param0` — 0: Object - The curve
- `param1` — 1: Object - The key

**Returns:** Integer - The index of the given key in given curve

## Function header

The comment at the top of the function's file in the game; this page's description, params, returns come from it.

```sqf
/*
Author: Nelson Duarte <@Nelson_G_Duarte>

Description:
Get's the index of given key in given curve

Parameter(s):
_this select 0: Object - The curve
_this select 1: Object - The key

Returns:
Integer - The index of the given key in given curve
*/
```

<sub>Source: [BI Community Wiki — BIS fnc richCurve getKeyIndex](https://community.bistudio.com/wiki/BIS_fnc_richCurve_getKeyIndex) (revision 279144).</sub>
