# HG changeset patch
# User Wuzzy
# Date 1519138265 0
# Node ID 550b1afc9300f30ea0920ed53b4ce852a14c4320
# Parent 2cefe77fbeb731a68cb8227499b0d5446a9797a5
LuaAPI: fix code syntax
diff -r 2cefe77fbeb7 -r 550b1afc9300 LuaAPI.wiki
--- a/LuaAPI.wiki Tue Feb 20 14:48:32 2018 +0000
+++ b/LuaAPI.wiki Tue Feb 20 14:51:05 2018 +0000
@@ -788,25 +788,17 @@
Beware, the collision mask is often set by the engine as well.
Examples:
-```
-SetGearCollisionMask(gear, 0xFF7F)
--- Ignore collision with current hedgehog
-```
+SetGearCollisionMask(gear, 0xFF7F)
+-- Ignore collision with current hedgehog
-```
-SetGearCollisionMask(gear, 0xFFFF)
--- Collide with everything
-```
+SetGearCollisionMask(gear, 0xFFFF)
+-- Collide with everything
-```
-SetGearCollisionMask(gear, 0x00FF)
--- Collide with hedgehogs and objects
-```
+SetGearCollisionMask(gear, 0x00FF)
+-- Collide with hedgehogs and objects
-```
-SetGearCollisionMask(gear, 0x0000)
--- Collide with nothing
-```
+SetGearCollisionMask(gear, 0x0000)
+-- Collide with nothing
There are actual more flags availbable, but they are not as useful for use in Lua. You can find the full range of flags in the engine source code (in Pascal):
https://hg.hedgewars.org/hedgewars/file/default/hedgewars/uConsts.pas#l112
@@ -974,10 +966,9 @@
Example:
-```
+
SetGearAIHints(uselessHog, aihDoesntMatter)
--- This makes AI hogs stop caring about attacking uselessHog
-```
+-- This makes AI hogs stop caring about attacking uselessHog
=== !SetGearPos(gearUid, value) (0.9.18-dev) ===
Sets the `Pos` value (not the position!) of the specified gear to specified value. See `GetGearPos` for more information.
@@ -1478,10 +1469,7 @@
Example:
-```
-DeclareAchievement("height reached", teamname, "ClimbHome", -score)
-```
-
+DeclareAchievement("height reached", teamname, "ClimbHome", -score)
Records a team's best height in !ClimbHome.
=== !ParseCommand(string) ===