{"name":"BIS_fnc_replaceWithSimpleObject","title":"BIS fnc replaceWithSimpleObject","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_replaceWithSimpleObject","revid":364329,"updated":"2024-05-06T09:38:48Z","groups":["Object Manipulation"],"status":"ok","games":{"arma3":"1.62"},"since":"arma3 1.62","arma3_since":"1.62","description":"Replaces a normal object with a Simple Object.\nObject must not contain any crew and must be placed on the ground.\n\n> [!NOTE]\n> - Useful if you do not have access to simple object adjustment data - e.g. in case of unsupported/discontinued asset.\n> - All official assets have the adjustment data defined in config.","syntaxes":[{"syntax":"[object] call BIS_fnc_replaceWithSimpleObject","params":[{"name":"object","type":"Object","description":"the object that will be replaced by a simple object","type_expr":"Object"}],"returns":{"type":"Object","type_expr":"Object","description":"the created Simple Object"}}],"examples":[{"code":["[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"]}