Edited wiki page LuaAPI through web user interface.
authorhenrik.rostedt
Mon, 13 Dec 2010 14:09:17 +0000
changeset 71 2dcbebb06088
parent 70 ff7d4c176303
child 72 6bfadfa16443
Edited wiki page LuaAPI through web user interface.
LuaAPI.wiki
--- a/LuaAPI.wiki	Mon Dec 13 13:02:17 2010 +0000
+++ b/LuaAPI.wiki	Mon Dec 13 14:09:17 2010 +0000
@@ -162,6 +162,10 @@
 
 <blockquote>returns tuple of x,y coordinates for the specified gear
 </blockquote>
+=== <tt>!GetGearVelocity(gearUid)</tt> (dev) ===
+
+<blockquote>returns tuple of dx,dy values for the specified gear
+</blockquote>
 === <tt>!GetHogClan(gearUid)</tt> ===
 
 <blockquote>returns the clan id of the specified hedgehog gear
@@ -275,6 +279,10 @@
 
 <blockquote>Places the specified gear exactly at the position (x,y).
 </blockquote>
+=== <tt>!SetGearVelocity(gearUid, dx, dy)</tt> ===
+
+<blockquote>Gives the specified gear the velocity of dx, dy.
+</blockquote>
 === <tt>!SetAmmo(ammoType, count, probability, delay, numberInCrate)</tt> ===
 
 <blockquote>This updates the settings for a specified [AmmoTypes Ammo Type] as of count available for players, spawn probability, availability delay in turns, and the number available in crates. This is supposed to be used in the onAmmoStoreInit() even handler.
@@ -303,10 +311,11 @@
 
 <blockquote>This sets the position and velocity of the second gear to the first one.
 </blockquote>
-=== <tt>CopyPV2(gearUid, gearUid)</tt> ===
+=== <tt>CopyPV2(gearUid, gearUid)</tt> (deprecated) ===
 
 <blockquote>This sets the position of the second gear to that of the first one, but makes its velocity twice the one of the first.
 </blockquote>
+Notice: This is removed in dev, use GetGearVelocity and SetGearVelocity instead.
 === <tt>!FollowGear(gearUid)</tt> ===
 
 <blockquote>Makes the gameclient follow the specifiec gear.