Arma 3 Scripting

Function in Object Manipulation

BIS_fnc_replaceWithSimpleObject

Also available as Markdown and JSON, or read the original wiki page.

Description

Replaces a normal object with a Simple Object. Object must not contain any crew and must be placed on the ground.

Note

  • Useful if you do not have access to simple object adjustment data - e.g. in case of unsupported/discontinued asset.
  • All official assets have the adjustment data defined in config.

Syntax

[object] call BIS_fnc_replaceWithSimpleObject

Parameters:

Returns: Object - the created Simple Object

Examples

Example 1

[tank] call BIS_fnc_replaceWithSimpleObject;

Problems

Use with caution as this technique is not very clean - it should not be used for many objects and definitely not in MP games.

See also

createSimpleObject · BIS_fnc_adjustSimpleObject · BIS_fnc_createSimpleObject · BIS_fnc_simpleObjectData