Add Damage to GetGearValues, SetGearValues
authorWuzzy
Mon, 14 Sep 2015 00:56:32 +0000
changeset 637 8a18ff3d8024
parent 636 55b08e9ee152
child 638 9f17dc37a141
Add Damage to GetGearValues, SetGearValues
LuaAPI.wiki
--- a/LuaAPI.wiki	Thu Sep 10 22:22:47 2015 +0000
+++ b/LuaAPI.wiki	Mon Sep 14 00:56:32 2015 +0000
@@ -550,7 +550,7 @@
 
 This is returned (all variables are integers):
 
-`Angle, Power, WDTimer, Radius, Density, Karma, DirAngle, AdvBounce, ImpactSound, nImpactSounds, Tint`
+`Angle, Power, WDTimer, Radius, Density, Karma, DirAngle, AdvBounce, ImpactSound, nImpactSounds, Tint, Damage`
 
 A rough description of some of the parameters:
 
@@ -561,7 +561,7 @@
 Example:
 <code language="lua">
 -- Get all values in a single line of code:
-local Angle, Power, WDTimer, Radius, Density, Karma, DirAngle, AdvBounce, ImpactSound, nImpactSounds, Tint = GetGearValues(myGear)
+local Angle, Power, WDTimer, Radius, Density, Karma, DirAngle, AdvBounce, ImpactSound, nImpactSounds, Tint, Damage = GetGearValues(myGear)
 </code>
 
 === <tt>!GetVisualGearValues(vgUid)</tt> ===
@@ -620,7 +620,7 @@
 <code language="lua">    vgear = AddVisualGear(...)
     DeleteVisualGear(vgear) -- Delete the newly created visual gear.</code>
 
-=== <tt>!SetGearValues(gearUid, Angle, Power, WDTimer, Radius, Density, Karma, DirAngle, AdvBounce, ImpactSound, ImpactSounds, Tint)</tt> (0.9.22) ===
+=== <tt>!SetGearValues(gearUid, Angle, Power, WDTimer, Radius, Density, Karma, DirAngle, AdvBounce, ImpactSound, ImpactSounds, Tint, Damage)</tt> (0.9.22) ===
 Sets various gear value for the specified gear (`gearUid`). The meaining of each value often depends on the gear type. See the documentation on !GetGearValues for a brief description of the gear values.
 
 Set `nil` for each value you do not want to change.