LuaAPI.wiki
changeset 50 9033b970cbf7
parent 49 863995d12a27
child 51 5ab1cf4c7194
equal deleted inserted replaced
49:863995d12a27 50:9033b970cbf7
    89 
    89 
    90 <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. 
    90 <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. 
    91 </blockquote>
    91 </blockquote>
    92 Example:
    92 Example:
    93 
    93 
    94 <code lang="lua">    vgear = !AddVisualGear(1000, 1000, vgtExplosion, 0, false) -- adds an non-critical explosion at position 1000,1000. Returns 0 if it was not created.
    94 <code lang="lua">  -- adds an non-critical explosion at position 1000,1000. Returns 0 if it was not created.
       
    95     vgear = !AddVisualGear(1000, 1000, vgtExplosion, 0, false) 
    95 </code>
    96 </code>
    96 
    97 
    97 === <tt>!SpawnHealthCrate(x, y)</tt> (0.9.14) ===
    98 === <tt>!SpawnHealthCrate(x, y)</tt> (0.9.14) ===
    98 
    99 
    99 <blockquote>Spawns a health crate at the specified position.
   100 <blockquote>Spawns a health crate at the specified position.