Difference between revisions of "DCS func removeJunk"
From DCS World Wiki - Hoggitworld.com
(Created page with "{{Template:dcs_funcs |fName= removeJunk |vNum= 2.8.4 |par1= world |par2= |par3= |par4= |desc= Searches the defined area passed to the function...") |
(swap to correct variable for example's arg) |
||
(3 intermediate revisions by one other user not shown) | |||
Line 13: | Line 13: | ||
|par4= | |par4= | ||
− | |desc= Searches the defined area passed to the function to remove craters, object wreckage and any other debris within the search volume. Will not remove wreckage of scenery objects. | + | |desc= Searches the defined area passed to the function to remove craters, object wreckage, and any other debris within the search volume. Will not remove wreckage of scenery objects. |
+ | |||
+ | See pages for the correct format of each volume type: | ||
+ | |||
+ | {{listOfVolumes}} | ||
|rtnType= number | |rtnType= number | ||
Line 38: | Line 42: | ||
local sphere = trigger.misc.getZone('trainingAirbase') | local sphere = trigger.misc.getZone('trainingAirbase') | ||
− | sphere.point.y = land.getHeight({x = | + | sphere.point.y = land.getHeight({x = sphere.point.x, y = sphere.point.z}) |
local volS = { | local volS = { | ||
id = world.VolumeType.SPHERE, | id = world.VolumeType.SPHERE, | ||
Line 46: | Line 50: | ||
} | } | ||
} | } | ||
− | world.removeJunk( | + | world.removeJunk(volS) |