LuaAPI.wiki
changeset 359 418173e7af7a
parent 347 edc8d322d02d
child 360 2fcb523f0cc4
equal deleted inserted replaced
358:2c2632ccfe2f 359:418173e7af7a
   263 Example:
   263 Example:
   264 
   264 
   265 <code lang="lua">    local gear = !AddGear(0, 0, gtTarget, 0, 0, 0, 0)
   265 <code lang="lua">    local gear = !AddGear(0, 0, gtTarget, 0, 0, 0, 0)
   266     !FindPlace(gear, true, 0, LAND_WIDTH)</code>
   266     !FindPlace(gear, true, 0, LAND_WIDTH)</code>
   267 
   267 
   268 === <tt>!AddVisualGear(x, y, viusalGearType, state, critical)</tt> ===
   268 === <tt>!AddVisualGear(x, y, visualGearType, state, critical)</tt> ===
   269 
   269 
   270 <blockquote>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. 
   270 <blockquote>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. 
   271 </blockquote>
   271 </blockquote>
   272 Example:
   272 Example:
   273 
   273