BIS fnc destroyCity: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|([0-9]{1}.[0-9]{2})\|\= " to "|$1|Game version= ")
mNo edit summary
Line 7: Line 7:


|eff= global |MPeff= Effects in MP
|eff= global |MPeff= Effects in MP
|gr1 = Environment |GROUP1=
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 24: Line 26:


|p4= blacklist: [[Array]] - (Optional, default []) array of spared buildings |PARAMETER4=
|p4= blacklist: [[Array]] - (Optional, default []) array of spared buildings |PARAMETER4=
|p5= debug: [[Boolean]] - (Optional, default [[false]]) If [[true]], debug information are shown |PARAMETER5=


| [[Boolean]] - [[true]] when completed |RETURNVALUE=
| [[Boolean]] - [[true]] when completed |RETURNVALUE=
Line 42: Line 46:


<h3 style='display:none'>Bottom Section</h3>
<h3 style='display:none'>Bottom Section</h3>
[[Category:Function Group: Environment|{{uc:destroyCity}}]]
[[Category:Functions|{{uc:destroyCity}}]]
[[Category:Functions|{{uc:destroyCity}}]]
[[Category:{{Name|arma2oa}}: Functions|{{uc:destroyCity}}]]
[[Category:{{Name|arma2oa}}: Functions|{{uc:destroyCity}}]]
[[Category:{{Name|tkoh}}: Functions|{{uc:destroyCity}}]]
[[Category:{{Name|tkoh}}: Functions|{{uc:destroyCity}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:destroyCity}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:destroyCity}}]]

Revision as of 00:23, 10 October 2020

Hover & click on the images for description

Description

Description:
Destroys building in given area based on input seed.
Execution:
call
Multiplayer:
Server only
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
debug: Boolean - (Optional, default false) If true, debug information are shown
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