# HG changeset patch
# User Wuzzy
# Date 1442192192 0
# Node ID 8a18ff3d80242c5b7dc51073953c36f4786b239c
# Parent 55b08e9ee152f1e64bf335d91cfdf0a2a149f7b5
Add Damage to GetGearValues, SetGearValues
diff -r 55b08e9ee152 -r 8a18ff3d8024 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:
-- 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)
=== !GetVisualGearValues(vgUid) ===
@@ -620,7 +620,7 @@
vgear = AddVisualGear(...)
DeleteVisualGear(vgear) -- Delete the newly created visual gear.
-=== !SetGearValues(gearUid, Angle, Power, WDTimer, Radius, Density, Karma, DirAngle, AdvBounce, ImpactSound, ImpactSounds, Tint) (0.9.22) ===
+=== !SetGearValues(gearUid, Angle, Power, WDTimer, Radius, Density, Karma, DirAngle, AdvBounce, ImpactSound, ImpactSounds, Tint, Damage) (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.