LuaGears: Explain nImpactSounds draft
authorWuzzy
Mon, 15 Jul 2019 15:44:47 +0100
changeset 1946 fabbc283a035
parent 1945 b7b0b2a78d8d
child 1947 3cc17b9eed3f
LuaGears: Explain nImpactSounds
LuaGears.wiki
--- a/LuaGears.wiki	Thu Jul 11 15:28:36 2019 +0100
+++ b/LuaGears.wiki	Mon Jul 15 15:44:47 2019 +0100
@@ -382,6 +382,7 @@
 
  * `Radius`: Effect or collision radius, most of the time
  * `ImpactSound`: Sound it makes on a collision (see [Sounds])
+ * `nImpactSounds`: Must be used together with `ImpactSound`. Number of different impact sounds to use. `0`: Disable impact sound. `1`: Use sound selected in `ImpactSound`. `2` or higher: Uses a random impact sound each impact. The first possible sound is `ImpactSound`, the second possible sound is `ImpactSound+1`, and so on. For example, if `ImpactSound` is `sndHellishImpact1` and `nImpactSounds` equals 4, the impact sounds will be `sndHellishImpact1` to `sndHellishImpact4`
  * `Tint`: Used by some gear types to determine its colorization. The color is in RGBA format.
  * `Boom`: Used by most gears to determine the damage dealt.