---
name: "BIS_fnc_boatRack01InitAdjustZOffsets"
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_boatRack01InitAdjustZOffsets
revid: 379549
updated: 2026-10-31T13:44:53Z
---

# BIS_fnc_boatRack01InitAdjustZOffsets

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

Locality: executed with **spawn**

## Description

Part of the boat recovery system: adjusts the boat rack's cargo bay to a boat that is already loaded on it at mission start.
It waits until the rack's simulation is enabled, then, if the rack carries a boat ([getVehicleCargo](../commands/getVehicleCargo.md)), calls [BIS_fnc_boatRack01AdjustZOffset](../functions/BIS_fnc_boatRack01AdjustZOffset.md) with the first one.
The function is spawned by [BIS_fnc_boatRack01Init](../functions/BIS_fnc_boatRack01Init.md); it is meant for internal use. It does nothing in the Eden Editor or when the boat rack is [objNull](../commands/objNull.md).

## Syntax

```sqf
[boatRack] spawn BIS_fnc_boatRack01InitAdjustZOffsets
```

**Parameters:**

- `boatRack`: [Object](../topics/Object.md) - the boat rack

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

## Examples

### Example 1

```sqf
[myBoatRack] spawn BIS_fnc_boatRack01InitAdjustZOffsets;
```

## See also

[BIS_fnc_boatRack01Init](../functions/BIS_fnc_boatRack01Init.md) · [BIS_fnc_boatRack01AdjustZOffset](../functions/BIS_fnc_boatRack01AdjustZOffset.md) · [getVehicleCargo](../commands/getVehicleCargo.md)

<sub>Source: [BI Community Wiki — BIS fnc boatRack01InitAdjustZOffsets](https://community.bistudio.com/wiki/BIS_fnc_boatRack01InitAdjustZOffsets) (revision 379549).</sub>
