diff -r 5ab1cf4c7194 -r 714b56de5ea1 LuaAPI.wiki --- 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 @@ gear = !AddGear(…) !FindPlace(gear, true, 0, LAND_WIDTH) -- places the gear randomly between 0 and LAND_WIDTH +=== !HogTurnLeft(gearUid, boolean) === + +
Faces the specified hog left or right. +
+Example: + + HogTurnLeft(CurrentHedgehog, true) -- turns CurrentHedgehog left + HogTurnLeft(CurrentHedgehog, false) -- turns CurrentHedgehog right === !SetGearPosition(gearUid, x, y) ===
Places the specified gear exactly at the position (x,y).