BIS fnc destroyCity: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "(Optional, default {{hl|[]}})" to "(Optional, default <sqf inline>[]</sqf>)")
 
(31 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Function|Comments=
{{RV|type=function
____________________________________________________________________________________________


| arma2oa |Game name=
|game1= arma2oa
|version1= 1.56


|1.56|Game version=
|game2= tkoh
|version2= 1.00
 
|game3= arma3
|version3= 0.50


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


|gr1 = Environment |GROUP1=
|serverExec= server
____________________________________________________________________________________________


| Destroys building in given area based on input seed. |=
|gr1= Environment
____________________________________________________________________________________________


| [position, ''areaSize'', ''seed'', ''blacklist''] call [[BIS_fnc_destroyCity]] |SYNTAX=
|descr= Destroys building in given area based on input seed.
 
|s1= [position, ''areaSize'', ''seed'', ''blacklist''] call [[BIS_fnc_destroyCity]]


|p1= position: [[Object]], [[String]] or [[Position]] - center of the area:
|p1= position: [[Object]], [[String]] or [[Position]] - center of the area:
* [[Object]] - position of the object will be used
* [[Object]] - position of the object will be used
* [[String]] - marker name
* [[String]] - marker name
* [[Position]] |PARAMETER1=
* [[Position]]
 
|p2= areaSize: [[Number]] - (Optional, default 1000) area radius |PARAMETER2=


|p3= seed: [[Number]] - (Optional, default 1138) destruction's random seed |PARAMETER3=
|p2= areaSize: [[Number]] - (Optional, default 1000) area radius


|p4= blacklist: [[Array]] - (Optional, default []) array of spared buildings |PARAMETER4=
|p3= seed: [[Number]] - (Optional, default 1138) destruction's random seed


| [[Boolean]] - [[true]] when completed |RETURNVALUE=
|p4= blacklist: [[Array]] - (Optional, default <sqf inline>[]</sqf>) array of spared buildings


|x1= <code>["destroyBase", 500, 42, [ourHouseInTheMiddleOfTheStreet]] [[call]] [[BIS_fnc_destroyCity]];</code>|EXAMPLE1=
|r1= [[Boolean]] - [[true]] when completed
____________________________________________________________________________________________


| [[setDamage]], [[nearestBuilding]], [[buildingPos]] |SEEALSO=
|x1= <sqf>["destroyBase", 500, 42, [ourHouseInTheMiddleOfTheStreet]] call BIS_fnc_destroyCity;</sqf>


|mp= '''Server only''' |Multiplayer=
|seealso= [[setDamage]] [[nearestBuilding]] [[buildingPos]]
____________________________________________________________________________________________
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<h3 style='display:none'>Bottom Section</h3>
[[Category:Functions|{{uc:destroyCity}}]]
[[Category:{{Name|arma2oa}}: Functions|{{uc:destroyCity}}]]
[[Category:{{Name|tkoh}}: Functions|{{uc:destroyCity}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:destroyCity}}]]

Latest revision as of 19:09, 8 November 2023

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:
setDamage nearestBuilding buildingPos

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