--- 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: