LuaEvents.wiki
changeset 2114 cbb1fde40368
parent 2092 132b6ed4e724
child 2223 4e49d93377fd
equal deleted inserted replaced
2113:115b171c7e3e 2114:cbb1fde40368
   245 
   245 
   246 `frameIdx` is used for the rubber orientation. The possible values are explained in `PlaceRubber`. `centerX` and `centerY` are the coordinates of the rubber’s center.
   246 `frameIdx` is used for the rubber orientation. The possible values are explained in `PlaceRubber`. `centerX` and `centerY` are the coordinates of the rubber’s center.
   247 
   247 
   248 === <tt>onSpecialPoint(x, y, flags)</tt> ===
   248 === <tt>onSpecialPoint(x, y, flags)</tt> ===
   249 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.
   249 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.
   250 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.
   250 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 `127` inclusive.
   251 
   251 
   252 This function is used in Racer and !TechRacer to define waypoints.
   252 This function is used in Racer and !TechRacer to define waypoints.