# HG changeset patch # User henrik.rostedt # Date 1292249582 0 # Node ID 6bfadfa164436aa115d87f6be0c8f79b3b668fd7 # Parent 2dcbebb06088dc4519d772cfe4f483b357f1118a Edited wiki page LuaAPI through web user interface. diff -r 2dcbebb06088 -r 6bfadfa16443 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>