BIS fnc destroyCity: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Small fixes)
Line 5: Line 5:


|1.56|=
|1.56|=
|arg= |= MPARGUMENTS


|eff= global |= Effects in MP
|eff= global |= Effects in MP
Line 14: Line 12:
____________________________________________________________________________________________
____________________________________________________________________________________________


| [position,''areaSize'',''seed'',''blacklist''] call '''BIS_fnc_destroyCity'''  |=
| [position, ''areaSize'', ''seed'', ''blacklist''] call [[BIS_fnc_destroyCity]] |= Syntax


|p1= position: [[Array]] (in format [[position]]) or [[Object]] (object position) or [[String]] (marker position) |= PARAMETER1 
|p1= position: [[Object]], [[String]] or [[Position]] - center of the area:
* [[Object]] - position of the object will be used
* [[String]] - marker name
* [[Position]] |= Parameter 1


|p2= areaSize ''(Optional)'': [[Number]] - area diameter (default is 1000) |= PARAMETER2
|p2= areaSize: [[Number]] - (Optional, default 1000) area radius |= Parameter 2


|p3= seed ''(Optional)'': [[Number]] - random seed (default is 1138) |= PARAMETER3
|p3= seed: [[Number]] - (Optional, default 1138) destruction's random seed |= Parameter 3


|p4= blacklist ''(Optional)'': [[Array]] of blacklisted objects (default is an empty array) |= PARAMETER4
|p4= blacklist: [[Array]] - (Optional, default []) array of spared buildings |= Parameter 4


| [[Boolean]] - true when completed |= RETURNVALUE
| [[Boolean]] - [[true]] when completed |= Return Value


|x1= <code>["destroyBase", 500, 42, [bis_vila]] [[call]] bis_fnc_destroyCity;</code>|= EXAMPLE1
|x1= <code>["destroyBase", 500, 42, [ourHouseInTheMiddleOfTheStreet]] [[call]] [[BIS_fnc_destroyCity]];</code>|= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[Functions Library]] |= SEEALSO
| [[setDamage]], [[nearestBuilding]], [[buildingPos]] |= See Also


| |= MPBEHAVIOUR
|mp= '''Server only''' |= Multiplayer
____________________________________________________________________________________________
____________________________________________________________________________________________
}}
}}

Revision as of 00:28, 14 May 2018

Hover & click on the images for description

Description

Description:
Destroys building in given area based on input seed.
Execution:
call
Multiplayer:
Server only
Groups:
Uncategorised

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

Notes

Bottom Section