# HG changeset patch # User RedGrinner # Date 1293750067 0 # Node ID 6130cad02b02a4d4a3de64267b6adac45a908d41 # Parent c6623486d077ca8bb0853b4fce73ad71d9718657 Added GetGearElasticity diff -r c6623486d077 -r 6130cad02b02 LuaAPI.wiki --- a/LuaAPI.wiki Mon Dec 13 19:23:34 2010 +0000 +++ b/LuaAPI.wiki Thu Dec 30 23:01:07 2010 +0000 @@ -166,6 +166,14 @@
returns tuple of dx,dy values for the specified gear
+=== !GetGearElasticity(gearUid) === + +
Returns the elasticity of the specified gear. Useful for determining if a hog is on a rope or not. If a hog is attached to a rope, or is busy firing one, the elasticity of the rope will be non-zero. +
+=== !GetGearVelocity(gearUid) (dev) === + +
returns tuple of dx,dy values for the specified gear +
=== !GetHogClan(gearUid) ===
returns the clan id of the specified hedgehog gear