BIS fnc destroyCity: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " *\|= " to " ") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| arma2oa | | arma2oa | ||
|1.56 | |1.56 | ||
|eff= global |MPeff= Effects in MP | |eff= global |MPeff= Effects in MP | ||
Line 9: | Line 9: | ||
|serverExec= server | |serverExec= server | ||
|gr1 = Environment | |gr1 = Environment | ||
| 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]] | | [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 []) array of spared buildings | ||
| [[Boolean]] - [[true]] when completed | | [[Boolean]] - [[true]] when completed | ||
|x1= <code>["destroyBase", 500, 42, [ourHouseInTheMiddleOfTheStreet]] [[call]] [[BIS_fnc_destroyCity]];</code> | |x1= <code>["destroyBase", 500, 42, [ourHouseInTheMiddleOfTheStreet]] [[call]] [[BIS_fnc_destroyCity]];</code> | ||
| [[setDamage]], [[nearestBuilding]], [[buildingPos]] | | [[setDamage]], [[nearestBuilding]], [[buildingPos]] | ||
}} | }} | ||
Revision as of 23:03, 17 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