# HG changeset patch # User henrik.rostedt # Date 1289685612 0 # Node ID 026591d95ac6ac132c40150eca293fac2eee8d7b # Parent 6fc5b427224fd44851b4b08526177c36feaa75bc Edited wiki page LuaAPI through web user interface. diff -r 6fc5b427224f -r 026591d95ac6 LuaAPI.wiki --- a/LuaAPI.wiki Fri Nov 12 16:34:39 2010 +0000 +++ b/LuaAPI.wiki Sat Nov 13 22:00:12 2010 +0000 @@ -131,6 +131,10 @@
returns the clan id of the specified hedgehog gear+=== !GetHogTeamName(gearUid) === + +
returns the name of the specified hedgehog gear's team +=== !GetHogName(gearUid) ===
returns the name of the specified hedgehog gear @@ -214,10 +218,14 @@=== !SetState(gearUid, state) === -
Sets the state of the specified gear to one of [States] +Sets the state of the specified gear to one of [States].+ === !SetTag(gearUid, tag) === +Sets the tag of the specified gear, different for every gear. ++ === !SetTimer(gearUid, timer) (0.9.14) ===Sets the timer of the specified gear. Also see !GetTimer. @@ -237,18 +245,38 @@ === !ShowMission(caption, subcaption, text, icon, time) === +Use to tell the player what he is supposed to do. ++ === !HideMission() === +Hides the mission. ++ +=== !AddCaption(text) (0.9.14) === + +Display event text in the upper part of the screen. ++ === !PlaySound(soundId) === +Plays the specified sound. ++ === !SetZoom(zoomLevel) (0.9.14) ===Sets the zoom level. The value for maximum zoom is currently 1.0 and for minimum 3.0 The default zoom level is 2.0+ === !GetZoom() (0.9.14) ===Returns the current zoom level+ +=== !GetRandom(number) (0.9.14) === + +Returns a randomly generated number in the range of 0 to number - 1. +== Debugging Functions == === !WriteLnToConsole(string) (0.9.14) ===