# HG changeset patch
# User Wuzzy
# Date 1479167306 0
# Node ID a01743eb08f18dca77b7b025040eee9393da3734
# Parent 1cb6252cbcf4c2881558159368e87cab87e3b9fc
LuaAPI: onVisualGearAdd, onVisualGearDelete, GetVisualGearType
diff -r 1cb6252cbcf4 -r a01743eb08f1 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 @@
=== onGearDelete(gearUid) ===
This function is called when a new gear is deleted. Useful in combination with `GetGearType(gearUid)`.
+=== onVisualGearAdd(vgUid) (0.9.23) ===
+This function is called when a new visual gear is added. Useful in combination with `GetVisualGearType(vgUid)`.
+
+=== onVisualGearDelete(vgUid) (0.9.23) ===
+This function is called when a new visual gear is deleted. Useful in combination with `GetVisualGearType(vgUid)`.
+
=== onGearDamage(gearUid, damage) ===
This function is called when a gear is damaged.
@@ -441,6 +447,9 @@
=== !GetGearType(gearUid) ===
This function returns the [GearTypes gear type] for the specified gear.
+=== !GetVisualGearType(vgUid) (0.9.23) ===
+This function returns the [VisualGearTypes visual gear type] for the specified visual gear.
+
=== !GetGearPosition(gearUid) ===
Returns x,y coordinates for the specified gear. Not to be confused with `GetGearPos`.