---
name: "BIS_fnc_boatRack01AdjustZOffset"
type: function
status: ok
groups: ["Boat Recovery"]
arma3_since: "1.84"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_boatRack01AdjustZOffset
revid: 286020
updated: 2021-06-20T17:24:24Z
---

# BIS_fnc_boatRack01AdjustZOffset

*Function · Boat Recovery · Arma 3 v1.84*

## Description

- This is sub function for 'boat recovery' functionality.

## Syntax

```sqf
[] call BIS_fnc_boatRack01AdjustZOffset
```

**Parameters:**

- `mode` — 0: (Scalar)
- `param0` — 0: boat rack object
- `param1` — 1: boat in cargo
  and
  other parameters from boat rack's cfgVehicles configuration.

**Returns:** nothing
Adjusts the hight (Z offset) of boat rack suspension to prevent different boats clipping with visual mesh.

## Examples

### Example 1

```sqf
[_boatRack, _boat] call BIS_fnc_boatRack01AdjustZOffset;
```

## Function header

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

```sqf
/*
Author: Bravo Zero One development
- John_Spartan

Description:
- This is sub function for 'boat recovery' functionality.

Execution:
- Call from Init EH script that is added to object (boat rack) or from action code.

Example:
    [_boatRack, _boat] call BIS_fnc_boatRack01AdjustZOffset;

Required:
    Object (boat rack) must have vehicle in vehicle behavior configured (https://community.bistudio.com/wiki/Arma_3_Vehicle_in_Vehicle_Transport).
    Object (boat rack) must have triggers set up with continuous actions.
    Object (boat rack) must have set of Z offset's predefined in cfgVehicles for know/supported boat types.

    Parameters used from cfgVehicles configuration:
    cargoBayAnimationSelection         = "CargoBay_Move_Z";
    supportedVehicleOffsetsZ[]        = {{"C_Boat_Civil_01_F",0.55}};

Parameter(s):
    _this select 0: mode (Scalar)
    0: boat rack object
    1: boat in cargo
    and
    other parameters from boat rack's cfgVehicles configuration.

Returns: nothing
Result: Adjusts the hight (Z offset) of boat rack suspension to prevent different boats clipping with visual mesh.
*/
```

<sub>Source: [BI Community Wiki — BIS fnc boatRack01AdjustZOffset](https://community.bistudio.com/wiki/BIS_fnc_boatRack01AdjustZOffset) (revision 286020).</sub>
