{"name":"BIS_fnc_replaceWithSimpleObject","operator":null,"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","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.62"}],"since":{"game":"arma3","name":"Arma 3","version":"1.62"},"arma3_since":"1.62","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"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","since":null,"effect":null,"exec":null,"params":[{"name":"object","type":"Object","optional":false,"default":null,"description":"the object that will be replaced by a simple object","types":["Object"],"since":null,"text":"object: Object - the object that will be replaced by a simple object"}],"returns":{"type":"Object","types":["Object"],"description":"the created Simple Object","text":"Object - the created Simple Object"}}],"examples":[{"text":"```sqf\n[tank] call BIS_fnc_replaceWithSimpleObject;\n```","code":["[tank] call BIS_fnc_replaceWithSimpleObject;"]}],"multiplayer":null,"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.","aliases":[],"see_also":["createSimpleObject","BIS_fnc_adjustSimpleObject","BIS_fnc_createSimpleObject","BIS_fnc_simpleObjectData"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Object Manipulation","Functions","Introduced with Arma 3 version 1.62"],"docblock":null,"filled_from_docblock":[]}