# HG changeset patch # User Wuzzy # Date 1555502915 -3600 # Node ID 43762534f5ab152f5c7dc4962d01579a33e6f4e8 # Parent 4da10ac56359a94abc075c592536b72eadf420b2 LuaEvents: Remove note to 0.9.23 diff -r 4da10ac56359 -r 43762534f5ab LuaEvents.wiki --- a/LuaEvents.wiki Wed Apr 17 13:07:39 2019 +0100 +++ b/LuaEvents.wiki Wed Apr 17 13:08:35 2019 +0100 @@ -74,10 +74,10 @@ == onGearDelete(gearUid) == This function is called when a new gear is deleted. Useful in combination with `GetGearType(gearUid)`. -== onVisualGearAdd(vgUid) (0.9.23) == +== onVisualGearAdd(vgUid) == This function is called when a new visual gear is added. Useful in combination with `GetVisualGearType(vgUid)`. -== onVisualGearDelete(vgUid) (0.9.23) == +== onVisualGearDelete(vgUid) == This function is called when a new visual gear is deleted. Useful in combination with `GetVisualGearType(vgUid)`. == onGearDamage(gearUid, damage) == @@ -193,7 +193,7 @@ == onUpUp() == This function is called when you release the up key. -== onUsedAmmo(ammoType) (0.9.23) == +== onUsedAmmo(ammoType) == Called after a weapon has been used completely, with `ammoType` as the used ammo type. For example, it is called right after a bazooka is fired, when both shots of a shotgun have been fired, when extra time is used, or when all 4 shots of a portable portal device have been fired. It is also called when using a multi-shot ammo has been aborted by changing the weapon selection mid-way, because this still uses up the ammo. @@ -222,7 +222,7 @@ `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. == onSpecialPoint(x, y, flags) == -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). +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. 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. This function is used in Racer and !TechRacer to define waypoints.