---
name: "BIS_fnc_carrier01PosUpdate"
type: function
status: ok
groups: ["Aircraft Carrier"]
arma3_since: "1.00"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_carrier01PosUpdate
revid: 273317
updated: 2021-06-13T00:49:49Z
---

# BIS_fnc_carrier01PosUpdate

*Function · Aircraft Carrier · Arma 3 v1.00*

## Description

- This is a sub function designed to update dynamic aircraft carriers position in EDEN editor. Carrier consists of multiple sub-objects that are linked together bnased on precise memory point positions in 3D space. Function will update initial object positions when player drggs the object in EDEN editor.

## Syntax

*syntax inferred from the function header*

```sqf
[mode, param0, param1] call BIS_fnc_carrier01PosUpdate
```

**Parameters:**

- `mode` — 0: (Scalar)
- `param0` — 0: carrier Base/object
  and
- `param1` — 1: array of objects in variable in base objects namespace ["bis_carrierParts", []];

**Returns:** nothing
Aircraft Carrier's possition is updated in EDEN editor.

## Examples

### Example 1

```sqf
class Eventhandlers
{
    init = "_this call BIS_fnc_Carrier01Init";                                //main init fnc, will assemble carrier in game
    AttributesChanged3DEN = "_this call BIS_fnc_Carrier01EdenInit";            //function to update objects position in EDEN editor if attributes changed by player
    Dragged3DEN = "_this call BIS_fnc_Carrier01PosUpdate";                    //function to update objects position in EDEN editor if attributes changed by player
    RegisteredToWorld3DEN = "_this call BIS_fnc_Carrier01EdenInit";            //initial EDEN init fnc (main init is still called)
    UnregisteredFromWorld3DEN = "_this call BIS_fnc_Carrier01EdenDelete";    //function  to delete all carrier objects in EDEN editor
};
```

## Function header

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

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

Description:
- This is a sub function designed to update dynamic aircraft carriers position in EDEN editor. Carrier consists of multiple sub-objects that are linked together bnased on precise memory point positions in 3D space.
Function will update initial object positions when player drggs the object in EDEN editor.

Exucution:
- Call from EH on the main carrier base model (blank model with momory points and reference config).

    Example:
    class Eventhandlers
    {
        init = "_this call BIS_fnc_Carrier01Init";                                //main init fnc, will assemble carrier in game
        AttributesChanged3DEN = "_this call BIS_fnc_Carrier01EdenInit";            //function to update objects position in EDEN editor if attributes changed by player
        Dragged3DEN = "_this call BIS_fnc_Carrier01PosUpdate";                    //function to update objects position in EDEN editor if attributes changed by player
        RegisteredToWorld3DEN = "_this call BIS_fnc_Carrier01EdenInit";            //initial EDEN init fnc (main init is still called)
        UnregisteredFromWorld3DEN = "_this call BIS_fnc_Carrier01EdenDelete";    //function  to delete all carrier objects in EDEN editor
    };

Requirments:
- An array of carrier parts/objects as a variable attached to main carrier base. This array is created by main BIS_fnc_Carrier01Init.

Parameter(s):
    _this select 0: mode (Scalar)
    0: carrier Base/object
    and
    1: array of objects in variable in base objects namespace ["bis_carrierParts", []];

Returns: nothing
Result: Aircraft Carrier's possition is updated in EDEN editor.
*/
```

<sub>Source: [BI Community Wiki — BIS fnc carrier01PosUpdate](https://community.bistudio.com/wiki/BIS_fnc_carrier01PosUpdate) (revision 273317).</sub>
