# HG changeset patch # User almikes@aol.com # Date 1417579071 0 # Node ID c0367902bea77dabc2898edeb82a31afb9d04fe8 # Parent 600e83a516090de999fb173edc93ad9e716056be Small formatting fixes. diff -r 600e83a51609 -r c0367902bea7 LuaAPI.wiki --- a/LuaAPI.wiki Wed Dec 03 03:43:22 2014 +0000 +++ b/LuaAPI.wiki Wed Dec 03 03:57:51 2014 +0000 @@ -67,7 +67,7 @@ <blockquote>This function is called before the game loads its resources. One can modify various game variables here: </blockquote> * <tt>Seed = 0</tt> - sets the seed of the random number generator - * <tt>!EnableGameFlags(gfSolidLand, gfArtillery)</tt> - sets the !GameFlags (just 2 of them in this example), see above for the available flags + * <tt>!EnableGameFlags(gfSolidLand, gfArtillery)</tt> - sets the !GameFlags (just 2 of them in this example), see above for the available flags/ * <tt>!TurnTime = 60000</tt> - set the turntime in ms * <tt>!CaseFreq = 0</tt> - frequency of crate drops * <tt>!HealthCaseProb = 35</tt> - chance of receiving a health crate @@ -638,7 +638,7 @@ SetWeapon(amBazooka) -- select the Bazooka.</code> </blockquote> -==== <tt>!SetNextWeapon()</tt> (0.9.21) ==== +=== <tt>!SetNextWeapon()</tt> (0.9.21) === This function makes the current hedgehog switch to the next weapon in list of available weapons. It can be used for example in trainings to pre-select a weapon. @@ -783,8 +783,6 @@ Returns the current input mask of the player. -==== - === Randomness === ==== <tt>!GetRandom(number)</tt> ==== @@ -846,13 +844,13 @@ </blockquote> === <tt>!PlaySound(soundId, gearUid)</tt> === - +/ <blockquote>Plays the specified sound for the chosen hedgehog's team. </blockquote> == File system functions == -=== <tt>HedgewarsScriptLoad(scriptPath)</tt> === +=== <tt>!HedgewarsScriptLoad(scriptPath)</tt> === Loads a script (i.e. a [LuaLibraries library]) from the specified `scriptPath`. The root directory is here Hedgewars’ data directory. Example: