BIS fnc destroyCity: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
(Add server only tag)
Line 7: Line 7:


|eff= global |MPeff= Effects in MP
|eff= global |MPeff= Effects in MP
|serverExec= server


|gr1 = Environment |GROUP1=
|gr1 = Environment |GROUP1=
Line 33: Line 35:


| [[setDamage]], [[nearestBuilding]], [[buildingPos]] |SEEALSO=
| [[setDamage]], [[nearestBuilding]], [[buildingPos]] |SEEALSO=
|mp= '''Server only''' |Multiplayer=
____________________________________________________________________________________________
____________________________________________________________________________________________
}}
}}

Revision as of 00:32, 16 December 2020

Hover & click on the images for description

Description

Description:
Destroys building in given area based on input seed.
Execution:
call
Groups:
Environment

Syntax

Syntax:
[position, areaSize, seed, blacklist] call BIS_fnc_destroyCity
Parameters:
position: Object, String or Position - center of the area:
areaSize: Number - (Optional, default 1000) area radius
seed: Number - (Optional, default 1138) destruction's random seed
blacklist: Array - (Optional, default []) array of spared buildings
Return Value:
Boolean - true when completed

Examples

Example 1:
["destroyBase", 500, 42, [ourHouseInTheMiddleOfTheStreet]] call BIS_fnc_destroyCity;

Additional Information

See also:
setDamagenearestBuildingbuildingPos

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section