LuaGuide: better Gears section
authorWuzzy
Thu, 09 Jun 2016 14:16:29 +0100
changeset 899 011ca6031678
parent 898 159bbbd0ab0a
child 900 f8887a49ad91
LuaGuide: better Gears section
LuaGuide.wiki
--- a/LuaGuide.wiki	Thu Jun 09 14:15:15 2016 +0100
+++ b/LuaGuide.wiki	Thu Jun 09 14:16:29 2016 +0100
@@ -99,8 +99,10 @@
 And when it hits the ground, before the gear has been deleted, `onGearDelete` is invoked with the shell as parameter, after that it is removed.
 
 Each gear has a [GearTypes gear type], for instance, a bazooka shell has the gear type of `gtShell`, a grenade has a gear type of `gtGrenade`, and so on. You will almost always need to check for the gear type with `GetGearType` in the `onGearAdd` function in order to do anything meaningful.
-Gears also have a lot of various values to track their position, state, etc. These can be accessed and written to with several “getter” and “setter” functions like `GetPos`, `GetHealth`, `SetTag`, etc. See [LuaAPI] for a full list.
-In Hedgewars, the gear values and some variable names do not always really mean what they seem to be, their concrete meaning often depends on the actual gear type. For instance, using `GetHealth(h)` on a hedgehog gear (gear type: `gtHedgehog`) will return its health (obviously). Less obviously, using `GetHealth` on a flying saucer gear (gear type: `gtJetpack`) will return its amount of fuel. To learn all the gory detaily about all those gears, see [GearTypes.
+
+Gears also have a lot of various values to track their position, state, etc. These can be accessed and written to with several “getter” and “setter” functions like `GetPos`, `GetHealth`, `SetTag`, etc. See [LuaAPI] for a full list. In Hedgewars, the gear values and some variable names do not always really mean what they seem to be, their concrete meaning often depends on the actual gear type. For instance, using `GetHealth(h)` on a hedgehog gear (gear type: `gtHedgehog`) will return its health (obviously). Less obviously, using `GetHealth` on a flying saucer gear (gear type: `gtJetpack`) will return its amount of fuel.
+
+To learn all the gory detaily about gears, see [GearTypes].
 
 == Other important event handlers ==