# HG changeset patch # User sheepyluva@gmail.com # Date 1386162688 0 # Node ID 2fcb523f0cc4ce0ac8af3f298668ecddc151c21a # Parent 418173e7af7a1993cf879e8dc417e1a06d1801da small fixes diff -r 418173e7af7a -r 2fcb523f0cc4 LuaAPI.wiki --- a/LuaAPI.wiki Tue Dec 03 23:53:43 2013 +0000 +++ b/LuaAPI.wiki Wed Dec 04 13:11:28 2013 +0000 @@ -589,12 +589,12 @@
Sets the timer of the specified gear. Also see !GetTimer.
-=== !SetHogLevel(gearUid) === +=== !SetHogLevel(gearUid, level) ===
Sets the bot level from 0 to 5. 0 means human player.
-=== !SetGearPos(gearUid,value) (0.9.18-dev) === +=== !SetGearPos(gearUid, value) (0.9.18-dev) ===
Set pos of specified gear to specified value.
@@ -638,9 +638,9 @@
Returns true/false if the map has a border or not.
-=== !TestRectForObstacle(x1, y1, x2, y2, bool) (0.9.16) === +=== !TestRectForObstacle(x1, y1, x2, y2, landOnly) (0.9.16) === -
Checks the given rectangle for collisions. +
Checks the rectangle between the given coordinates for possible collisions. set landOnly to true if you don't want to check for collisions with gears (hedgehogs, etc.)
=== !PlaySound(soundId) === @@ -727,7 +727,7 @@
This function will switch to the hedgehog with the specified Uid.
-=== !SendStat(TStatInfoType,statMessage[,teamName]) (0.9.20) === +=== !SendStat(TStatInfoType, statMessage[, teamName]) (0.9.20) ===
Exposes the uIO SendStat to the lua scripts. Use it to produce custom stat pages.