addDustCloud(<sObjName>, <sDustCloudType>, <tPosition>, <tColor>, ?, <fSize>)
Adds a Dust Cloud to a ".level" file. These obscure sensors and can be charged with ion beams.
addDustCloud("polySurface1", "DustCloud_NoRes", {0.0, 0.0, 0.0}, {1, 1, 1, 1}, 0.0, 0.0)
<sObjName>: the name of the dust cloud object.
Note: the name is for future use with SobGroup_AreAnySquadronsInsideDustCloud. If you add several dustclouds with the same name they are treated as a single dustcloud by this function.
<sDustCloudType>: the type of Dust Cloud. May be any of the following:
<tPosition>: a table containing the cloud's X, Z, and Y coordinates.
<tColor>: a table containing the cloud's red, green, and blue color values, as well as its opacity (alpha). Color values must be a float value between 0 and 1.
?: dunno.
<fSize>: the size of the cloud.
Dust Clouds must be added to the DetermChunk() portion of the ".level" file.
Related Pages