Arma 3 Scripting

BIS_fnc_replaceWithSimpleObject

  • Arma 3 v1.62

Function · Markdown · JSON · 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