---
name: "BIS_fnc_diagMacrosSimpleObject"
type: function
status: ok
groups: ["Diagnostic"]
arma3_since: "1.00"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_diagMacrosSimpleObject
revid: 286045
updated: 2021-06-20T17:24:45Z
---

# BIS_fnc_diagMacrosSimpleObject

*Function · Diagnostic · Arma 3 v1.00*

## Description

Generates simple object config data.

## Syntax

```sqf
[] call BIS_fnc_diagMacrosSimpleObject
```

**Parameters:**

- `param0` — 0: OBJECT or ARRAY - ground position where ground objects will be created (default: position calculated 15 meters away from player)
- `param1` — 1: SCALAR or BOOL - autolog mode (default: false)
  0 or false - no autolog, results will be only stored in clipboard
  1 or true - autolog on, results will be stored in \A3\macros_CfgVehicles_simpleObject_auto_A3.hpp file.
  2 - autlog on + world name, random number and custom suffix are appended to name of generated file to prevent overwriting and provide extra info
- `param2` — 2: ARRAY - classes you want to scan, use [] to scan all (default: []).
- `param3` — 3: OBJECT or ARRAY - sea position where ground objects will be created (default: position calculated 15 meters away from player)
- `param4` — 4: STRING - custom suffix added to filename if autolog is used (default: "").

**Returns:** 

## Examples

### Example 1

```sqf
bis_scriptHandle = [] spawn BIS_fnc_diagMacrosSimpleObject;
```

### Example 2

```sqf
Expected output per class (animate and hide arrays can have varying amount of elements):
#define CFGVEHICLES_SIMPLEOBJECT_class_F\
    class SimpleObject\
    {\
        animate[] =\
        {\
            {"animationName1", 1},\
            {"animationName2", 2}\
        };\
        hide[] =\
        {\
            "animationSelection1",\
            "animationSelection2"\
        };\
        verticalOffsetAsl = 0;\
    };
```

## Function header

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

```sqf
/*
Generates simple object config data.

Parameters:
    0: OBJECT or ARRAY - ground position where ground objects will be created (default: position calculated 15 meters away from player)
    1: SCALAR or BOOL - autolog mode (default: false)
        0 or false - no autolog, results will be only stored in clipboard
        1 or true - autolog on, results will be stored in \A3\macros_CfgVehicles_simpleObject_auto_A3.hpp file.
        2 - autlog on + world name, random number and custom suffix are appended to name of generated file to prevent overwriting and provide extra info
    2: ARRAY - classes you want to scan, use [] to scan all (default: []).
    3: OBJECT or ARRAY - sea position where ground objects will be created (default: position calculated 15 meters away from player)
    4: STRING - custom suffix added to filename if autolog is used (default: "").

Example:
bis_scriptHandle = [] spawn BIS_fnc_diagMacrosSimpleObject;

Expected output per class (animate and hide arrays can have varying amount of elements):
#define CFGVEHICLES_SIMPLEOBJECT_class_F\
    class SimpleObject\
    {\
        animate[] =\
        {\
            {"animationName1", 1},\
            {"animationName2", 2}\
        };\
        hide[] =\
        {\
            "animationSelection1",\
            "animationSelection2"\
        };\
        verticalOffsetAsl = 0;\
    };
*/
```

<sub>Source: [BI Community Wiki — BIS fnc diagMacrosSimpleObject](https://community.bistudio.com/wiki/BIS_fnc_diagMacrosSimpleObject) (revision 286045).</sub>
