BIS fnc destroyCity: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "|= Multiplayer " to "|Multiplayer= ") |
Lou Montana (talk | contribs) m (Text replacement - "(Optional, default {{hl|[]}})" to "(Optional, default <sqf inline>[]</sqf>)") |
||
(37 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=function | ||
| arma2oa |= | |game1= arma2oa | ||
|version1= 1.56 | |||
|1. | |game2= tkoh | ||
|version2= 1.00 | |||
|game3= arma3 | |||
|version3= 0.50 | |||
|eff= global |MPeff= Effects in MP | |eff= global |MPeff= Effects in MP | ||
| Destroys building in given area based on input seed. | |serverExec= server | ||
|gr1= Environment | |||
|descr= Destroys building in given area based on input seed. | |||
| [position, ''areaSize'', ''seed'', ''blacklist''] call [[BIS_fnc_destroyCity]] | |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]] | * [[Position]] | ||
|p2= areaSize: [[Number]] - (Optional, default 1000) area radius | |p2= areaSize: [[Number]] - (Optional, default 1000) area radius | ||
|p3= seed: [[Number]] - (Optional, default 1138) destruction's random seed | |p3= seed: [[Number]] - (Optional, default 1138) destruction's random seed | ||
|p4= blacklist: [[Array]] - (Optional, default []) array of spared buildings | |p4= blacklist: [[Array]] - (Optional, default <sqf inline>[]</sqf>) array of spared buildings | ||
| [[Boolean]] - [[true]] when completed | |r1= [[Boolean]] - [[true]] when completed | ||
|x1= < | |x1= <sqf>["destroyBase", 500, 42, [ourHouseInTheMiddleOfTheStreet]] call BIS_fnc_destroyCity;</sqf> | ||
| [[setDamage]] | |seealso= [[setDamage]] [[nearestBuilding]] [[buildingPos]] | ||
}} | }} | ||
Latest revision as of 18:09, 8 November 2023
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:
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