LuaAPI.wiki
changeset 1229 ff97ab480e0d
parent 1228 460d8f3aaf32
child 1230 2cefe77fbeb7
equal deleted inserted replaced
1228:460d8f3aaf32 1229:ff97ab480e0d
   383 Now, when such a special point at the coordinates `x` and `y` with an assigned value of `flags` is added, this function is called. `flags` is a whole number between `0` and `255` inclusive.
   383 Now, when such a special point at the coordinates `x` and `y` with an assigned value of `flags` is added, this function is called. `flags` is a whole number between `0` and `255` inclusive.
   384 
   384 
   385 This function is used in Racer and !TechRacer to define waypoints.
   385 This function is used in Racer and !TechRacer to define waypoints.
   386 
   386 
   387 === `onAchievementsDeclaration()` ===
   387 === `onAchievementsDeclaration()` ===
   388 This function is called after the stats have been built. You are supposed to call `DeclareAchievement` here.
   388 This function is called after the stats for the stats screen (after the game) have been generated. You are supposed to call `DeclareAchievement` here.
   389 
   389 
   390 == Functions for creating gears ==
   390 == Functions for creating gears ==
   391 
   391 
   392 === <tt>!AddGear(x, y, gearType, state, dx, dy, timer)</tt> ===
   392 === <tt>!AddGear(x, y, gearType, state, dx, dy, timer)</tt> ===
   393 This creates a new gear at position x,y (measured from top left) of kind `gearType` (see [GearTypes Gear Types]). The initial velocities are `dx` and `dy`. All arguments are numbers. The function returns the `uid` of the gear created. Gears can have multple states at once: `state` is a bitmask, the flag variables can be found in [States].
   393 This creates a new gear at position x,y (measured from top left) of kind `gearType` (see [GearTypes Gear Types]). The initial velocities are `dx` and `dy`. All arguments are numbers. The function returns the `uid` of the gear created. Gears can have multple states at once: `state` is a bitmask, the flag variables can be found in [States].