LuaAPI.wiki
changeset 28 026591d95ac6
parent 24 a34dc3c46a47
child 38 123cc75cbe6a
equal deleted inserted replaced
27:6fc5b427224f 28:026591d95ac6
   129 </blockquote>
   129 </blockquote>
   130 === <tt>!GetHogClan(gearUid)</tt> ===
   130 === <tt>!GetHogClan(gearUid)</tt> ===
   131 
   131 
   132 <blockquote>returns the clan id of the specified hedgehog gear
   132 <blockquote>returns the clan id of the specified hedgehog gear
   133 </blockquote>
   133 </blockquote>
       
   134 === <tt>!GetHogTeamName(gearUid)</tt> ===
       
   135 
       
   136 <blockquote>returns the name of the specified hedgehog gear's team
       
   137 </blockquote>
   134 === <tt>!GetHogName(gearUid)</tt> ===
   138 === <tt>!GetHogName(gearUid)</tt> ===
   135 
   139 
   136 <blockquote>returns the name of the specified hedgehog gear
   140 <blockquote>returns the name of the specified hedgehog gear
   137 </blockquote>
   141 </blockquote>
   138 === <tt>GetX(gearUid)</tt> ===
   142 === <tt>GetX(gearUid)</tt> ===
   212 
   216 
   213 <blockquote>Makes the gameclient follow the specifiec gear.
   217 <blockquote>Makes the gameclient follow the specifiec gear.
   214 </blockquote>
   218 </blockquote>
   215 === <tt>!SetState(gearUid, state)</tt> ===
   219 === <tt>!SetState(gearUid, state)</tt> ===
   216 
   220 
   217 <blockquote>Sets the state of the specified gear to one of [States]
   221 <blockquote>Sets the state of the specified gear to one of [States].
   218 </blockquote>
   222 </blockquote>
       
   223 
   219 === <tt>!SetTag(gearUid, tag)</tt> ===
   224 === <tt>!SetTag(gearUid, tag)</tt> ===
   220 
   225 
       
   226 <blockquote>Sets the tag of the specified gear, different for every gear.
       
   227 </blockquote>
       
   228 
   221 === <tt>!SetTimer(gearUid, timer)</tt> (0.9.14) ===
   229 === <tt>!SetTimer(gearUid, timer)</tt> (0.9.14) ===
   222 
   230 
   223 <blockquote>Sets the timer of the specified gear. Also see !GetTimer.
   231 <blockquote>Sets the timer of the specified gear. Also see !GetTimer.
   224 </blockquote>
   232 </blockquote>
   225 
   233 
   235 <blockquote>Makes the gameclient parse the specified custom command.
   243 <blockquote>Makes the gameclient parse the specified custom command.
   236 </blockquote>
   244 </blockquote>
   237 
   245 
   238 === <tt>!ShowMission(caption, subcaption, text, icon, time)</tt> ===
   246 === <tt>!ShowMission(caption, subcaption, text, icon, time)</tt> ===
   239 
   247 
       
   248 <blockquote>Use to tell the player what he is supposed to do.
       
   249 </blockquote>
       
   250 
   240 === <tt>!HideMission()</tt> ===
   251 === <tt>!HideMission()</tt> ===
   241 
   252 
       
   253 <blockquote>Hides the mission.
       
   254 </blockquote>
       
   255 
       
   256 === <tt>!AddCaption(text)</tt> (0.9.14) ===
       
   257 
       
   258 <blockquote>Display event text in the upper part of the screen.
       
   259 </blockquote>
       
   260 
   242 === <tt>!PlaySound(soundId)</tt> ===
   261 === <tt>!PlaySound(soundId)</tt> ===
   243 
   262 
       
   263 <blockquote>Plays the specified sound.
       
   264 </blockquote>
       
   265 
   244 === <tt>!SetZoom(zoomLevel)</tt> (0.9.14) ===
   266 === <tt>!SetZoom(zoomLevel)</tt> (0.9.14) ===
   245 
   267 
   246 <blockquote>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
   268 <blockquote>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
   247 </blockquote>
   269 </blockquote>
       
   270 
   248 === <tt>!GetZoom()</tt> (0.9.14) ===
   271 === <tt>!GetZoom()</tt> (0.9.14) ===
   249 
   272 
   250 <blockquote>Returns the current zoom level
   273 <blockquote>Returns the current zoom level
   251 </blockquote>
   274 </blockquote>
       
   275 
       
   276 === <tt>!GetRandom(number)</tt> (0.9.14) ===
       
   277 
       
   278 <blockquote>Returns a randomly generated number in the range of 0 to number - 1. 
       
   279 </blockquote>
   252 == Debugging Functions ==
   280 == Debugging Functions ==
   253 
   281 
   254 === <tt>!WriteLnToConsole(string)</tt> (0.9.14) ===
   282 === <tt>!WriteLnToConsole(string)</tt> (0.9.14) ===
   255 
   283 
   256 <blockquote>Guess :D
   284 <blockquote>Guess :D