LuaAPI.wiki
changeset 1692 cb3ddd1c394a
parent 1683 e8df7f4501a6
child 1693 a1ff7cf0f55c
equal deleted inserted replaced
1691:244c3e2ebc4c 1692:cb3ddd1c394a
   399 This is used while a special hand-drawn map is loaded. The engine is building these hand-drawn maps by reading points from the map definition. Optionally, some of these points may be “special”. These are not actually drawn on the map, but are used to store additional information for a position on the map. Special points currently need to be added manually in the map, the in-game editor is not able to add those yet (as of 0.9.23).
   399 This is used while a special hand-drawn map is loaded. The engine is building these hand-drawn maps by reading points from the map definition. Optionally, some of these points may be “special”. These are not actually drawn on the map, but are used to store additional information for a position on the map. Special points currently need to be added manually in the map, the in-game editor is not able to add those yet (as of 0.9.23).
   400 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.
   400 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.
   401 
   401 
   402 This function is used in Racer and !TechRacer to define waypoints.
   402 This function is used in Racer and !TechRacer to define waypoints.
   403 
   403 
   404 === </t>onAchievementsDeclaration()</tt> ===
   404 === <tt>onAchievementsDeclaration()</tt> ===
   405 This function is called after the stats for the stats screen (after the game) have been generated. You are supposed to call `DeclareAchievement` here.
   405 This function is called after the stats for the stats screen (after the game) have been generated. You are supposed to call `DeclareAchievement` here.
   406 
   406 
   407 == Functions for creating gears ==
   407 == Functions for creating gears ==
   408 
   408 
   409 === <tt>!AddGear(x, y, gearType, state, dx, dy, timer)</tt> ===
   409 === <tt>!AddGear(x, y, gearType, state, dx, dy, timer)</tt> ===