---
name: "BIS_fnc_adjustSimpleObject"
type: function
status: ok
groups: ["Object Manipulation"]
arma3_since: "1.62"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_adjustSimpleObject
revid: 349493
updated: 2023-11-08T17:09:09Z
---

# BIS_fnc_adjustSimpleObject

*Function · Object Manipulation · Arma 3 v1.62*

## Description

Adjust simple object vertical position, animations and selection according to provided data.

In case both adjustment data and class are being used, data has higher priority and only undefined parts are filled from config.

> [!IMPORTANT]
> This function is automatically called by [BIS_fnc_createSimpleObject](../functions/BIS_fnc_createSimpleObject.md).

## Syntax

```sqf
[object, [class, model, reversed, verticalOffset, animAdjustments, selectionToHide]] call BIS_fnc_adjustSimpleObject
```

**Parameters:**

- `object`: [Object](../topics/Object.md) - simple object that will be adjusted
- `class`: [String](../topics/String.md) - (Optional, default "") asset `CfgVehicles` config class (**at least either *model* or *class* must be provided, ideally both**)
- `model`: [String](../topics/String.md) - (Optional, default "") path to the vehicle p3d model; needs to start without backslash and must end with the proper file extension ".p3d"
- `reversed`: [Number](../topics/Number.md) - (Optional, default 0) some objects, usually vehicles, are reveresed in p3d; valid values are:
  -  0: no change
  -  1: reverse
  - -1: unknown (behaves as 0)
- `verticalOffset`: [Array](../topics/Array.md) - (Optional, default 0) fix for non-existant physX; usually needed only for vehicles
- `animationAdjustments`: [Array](../topics/Array.md) - (Optional, default `[]`) animation that need to be animated to given state, in format [animationName, animationState]:
  - animationName: [String](../topics/String.md) - animation name
  - animationState: [Number](../topics/Number.md) - animation state
- `selectionsToHide`: [Array](../topics/Array.md) - (Optional, default `[]`) all listed selections will be hidden

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

## Examples

### Example 1

```sqf
[myCar, ["B_MyCar_F", "path\to\file.p3d"]] call BIS_fnc_adjustSimpleObject;
```

## See also

[createSimpleObject](../commands/createSimpleObject.md) · [BIS_fnc_createSimpleObject](../functions/BIS_fnc_createSimpleObject.md) · [BIS_fnc_simpleObjectData](../functions/BIS_fnc_simpleObjectData.md)

<sub>Source: [BI Community Wiki — BIS fnc adjustSimpleObject](https://community.bistudio.com/wiki/BIS_fnc_adjustSimpleObject) (revision 349493).</sub>
