addNebula(<sNebulaName>, <sNebulaType>, <tPosition>, <tColor>, ?, <fSize>)
Adds a nebula to a ".level" file. These damage ships!
addNebula("MyNebula", "M11_Bentusi_Radiation", {0.0, 0.0, 0.0,}, {1, 1, 1, 1,}, 0.0, 0.0)
<sNebulaName>: the name of the nebula.
<sNebulaType>: the type of nebula. Can be any of the following:
<tPosition>: a table containing the nebula's X, Z, and Y coordinates.
<tColor>: a table containing the nebula's red, green, and blue color values, as well as its opacity (alpha). Color values must be a between 0 and 255. Opacity (alpha) must be a value between 0 and 1.
?: dunno.
<fSize>: the size of the nebula.
This function must be called from within the DetermChunk() function.
Related Pages