--- a/LuaAPI.wiki Mon Dec 06 14:42:31 2010 +0000
+++ b/LuaAPI.wiki Mon Dec 06 15:00:01 2010 +0000
@@ -235,6 +235,14 @@
<code lang="lua"> gear = !AddGear(…)
!FindPlace(gear, true, 0, LAND_WIDTH) -- places the gear randomly between 0 and LAND_WIDTH</code>
+=== <tt>!HogTurnLeft(gearUid, boolean)</tt> ===
+
+<blockquote>Faces the specified hog left or right.
+</blockquote>
+Example:
+
+<code lang="lua"> HogTurnLeft(CurrentHedgehog, true) -- turns CurrentHedgehog left
+ HogTurnLeft(CurrentHedgehog, false) -- turns CurrentHedgehog right</code>
=== <tt>!SetGearPosition(gearUid, x, y)</tt> ===
<blockquote>Places the specified gear exactly at the position (x,y).