Edited wiki page LuaAPI through web user interface.
authorhenrik.rostedt
Mon, 13 Dec 2010 14:13:02 +0000
changeset 72 6bfadfa16443
parent 71 2dcbebb06088
child 73 c6623486d077
Edited wiki page LuaAPI through web user interface.
LuaAPI.wiki
--- a/LuaAPI.wiki	Mon Dec 13 14:09:17 2010 +0000
+++ b/LuaAPI.wiki	Mon Dec 13 14:13:02 2010 +0000
@@ -133,15 +133,15 @@
 
 <code lang="lua">    !SetAmmo(amLaserSight, 0, 0, 0, 1)
     !SpawnUtilityCrate(0, 0, amLaserSight)</code>
-=== <tt>!AddTeam(teamname, color, grave, fort, voicepack)</tt> ===
+=== <tt>!AddTeam(teamname, color, grave, fort, voicepack, flag)</tt> ===
 
-<blockquote>Adds a new team. Note that this can only be done in onGameInit(), not at a later time. First argument is the team name followed by color, grave, fort and voicepack settings.
+<blockquote>Adds a new team. Note that this can only be done in onGameInit(), not at a later time. First argument is the team name followed by color, grave, fort, voicepack and flag settings.
 </blockquote>
-Notice: This works only for singleplayers training missions for now and will desync multiplayer games.
+Notice: This works only for singleplayers training missions for now and will desync multiplayer games. Flag setting is dev only.
 
 Example:
 
-<code lang="lua">    !AddTeam("team 1", 14483456, "Simple", "Island", "Default")</code>
+<code lang="lua">    !AddTeam("team 1", 14483456, "Simple", "Island", "Default", "hedgewars")</code>
 === <tt>!AddHog(hogname, botlevel, health, hat)</tt> ===
 
 <blockquote>Adds a new hedgehog for current team (last created one), with botlevel and specified health also head.
@@ -279,7 +279,7 @@
 
 <blockquote>Places the specified gear exactly at the position (x,y).
 </blockquote>
-=== <tt>!SetGearVelocity(gearUid, dx, dy)</tt> ===
+=== <tt>!SetGearVelocity(gearUid, dx, dy)</tt> (dev) ===
 
 <blockquote>Gives the specified gear the velocity of dx, dy.
 </blockquote>