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 @@
This function is called before the game loads its resources. One can modify various game variables here:
* Seed = 0 - sets the seed of the random number generator - * !EnableGameFlags(gfSolidLand, gfArtillery) - sets the !GameFlags (just 2 of them in this example), see above for the available flags + * !EnableGameFlags(gfSolidLand, gfArtillery) - sets the !GameFlags (just 2 of them in this example), see above for the available flags/ * !TurnTime = 60000 - set the turntime in ms * !CaseFreq = 0 - frequency of crate drops * !HealthCaseProb = 35 - chance of receiving a health crate @@ -638,7 +638,7 @@ SetWeapon(amBazooka) -- select the Bazooka. -==== !SetNextWeapon() (0.9.21) ==== +=== !SetNextWeapon() (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 === ==== !GetRandom(number) ==== @@ -846,13 +844,13 @@ === !PlaySound(soundId, gearUid) === - +/
Plays the specified sound for the chosen hedgehog's team.
== File system functions == -=== HedgewarsScriptLoad(scriptPath) === +=== !HedgewarsScriptLoad(scriptPath) === Loads a script (i.e. a [LuaLibraries library]) from the specified `scriptPath`. The root directory is here Hedgewars’ data directory. Example: