BIS fnc destroyCity: Difference between revisions
Jump to navigation
Jump to search
Freddo3000 (talk | contribs) (Add server only tag) |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Function|Comments= | {{Function|Comments= | ||
| arma2oa |Game name= | | arma2oa |Game name= | ||
Line 11: | Line 10: | ||
|gr1 = Environment |GROUP1= | |gr1 = Environment |GROUP1= | ||
| Destroys building in given area based on input seed. |= | | Destroys building in given area based on input seed. |= | ||
| [position, ''areaSize'', ''seed'', ''blacklist''] call [[BIS_fnc_destroyCity]] |SYNTAX= | | [position, ''areaSize'', ''seed'', ''blacklist''] call [[BIS_fnc_destroyCity]] |SYNTAX= | ||
Line 32: | Line 29: | ||
|x1= <code>["destroyBase", 500, 42, [ourHouseInTheMiddleOfTheStreet]] [[call]] [[BIS_fnc_destroyCity]];</code>|EXAMPLE1= | |x1= <code>["destroyBase", 500, 42, [ourHouseInTheMiddleOfTheStreet]] [[call]] [[BIS_fnc_destroyCity]];</code>|EXAMPLE1= | ||
| [[setDamage]], [[nearestBuilding]], [[buildingPos]] |SEEALSO= | | [[setDamage]], [[nearestBuilding]], [[buildingPos]] |SEEALSO= | ||
}} | }} | ||
Revision as of 23:12, 16 January 2021
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