Arma 3 Scripting

Function in Environment

BIS_fnc_createRuin

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

Description

Create a building ruin and hide the original object.

Syntax

building call BIS_fnc_createRuin

Parameters:

Returns: Object - the created ruin

Examples

Example 1

aBuilding call BIS_fnc_createRuin;

Example 2

// will destroy every building in a 50m radius around the player
private _nearBuildings = player nearObjects ["House", 50];
{ _x call BIS_fnc_createRuin } forEach _nearBuildings;

See also

setDamage

Community notes