# HG changeset patch # User pntanasis@gmail.com # Date 1386114823 0 # Node ID 418173e7af7a1993cf879e8dc417e1a06d1801da # Parent 2c2632ccfe2fa6dd86d1240ad9e5762e1ee50a11 typo diff -r 2c2632ccfe2f -r 418173e7af7a LuaAPI.wiki --- a/LuaAPI.wiki Mon Dec 02 08:57:06 2013 +0000 +++ b/LuaAPI.wiki Tue Dec 03 23:53:43 2013 +0000 @@ -265,7 +265,7 @@ local gear = !AddGear(0, 0, gtTarget, 0, 0, 0, 0) !FindPlace(gear, true, 0, LAND_WIDTH) -=== !AddVisualGear(x, y, viusalGearType, state, critical) === +=== !AddVisualGear(x, y, visualGearType, state, critical) ===
This creates a new visual gear at position x,y (measured from top left) of kind visualGearType (see [VisualGearTypes Visual Gear Types]). The function returns the uid of the visual gear created. Set critical to true if the visual gear is crucial to game play. False if it is just an effect, and can be skipped when in fastforward (such as when joining a room). A critical visual gear will always be created, a non-critical one may fail. Most visual gears delete themselves.