LuaAPI: onVisualGearAdd, onVisualGearDelete, GetVisualGearType
authorWuzzy
Mon, 14 Nov 2016 23:48:26 +0000
changeset 916 a01743eb08f1
parent 915 1cb6252cbcf4
child 917 c05279ae1ac2
LuaAPI: onVisualGearAdd, onVisualGearDelete, GetVisualGearType
LuaAPI.wiki
--- a/LuaAPI.wiki	Mon Nov 14 20:45:04 2016 +0100
+++ b/LuaAPI.wiki	Mon Nov 14 23:48:26 2016 +0000
@@ -215,6 +215,12 @@
 === <tt>onGearDelete(gearUid)</tt> ===
 This function is called when a new gear is deleted. Useful in combination with `GetGearType(gearUid)`.
 
+=== <tt>onVisualGearAdd(vgUid)</tt> (0.9.23) ===
+This function is called when a new visual gear is added. Useful in combination with `GetVisualGearType(vgUid)`.
+
+=== <tt>onVisualGearDelete(vgUid)</tt> (0.9.23) ===
+This function is called when a new visual gear is deleted. Useful in combination with `GetVisualGearType(vgUid)`.
+
 === <tt>onGearDamage(gearUid, damage)</tt> ===
 This function is called when a gear is damaged.
 
@@ -441,6 +447,9 @@
 === <tt>!GetGearType(gearUid)</tt> ===
 This function returns the [GearTypes gear type] for the specified gear.
 
+=== <tt>!GetVisualGearType(vgUid)</tt> (0.9.23) ===
+This function returns the [VisualGearTypes visual gear type] for the specified visual gear.
+
 === <tt>!GetGearPosition(gearUid)</tt> ===
 Returns x,y coordinates for the specified gear. Not to be confused with `GetGearPos`.