# 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 @@
!SetAmmo(amLaserSight, 0, 0, 0, 1)
!SpawnUtilityCrate(0, 0, amLaserSight)
-=== !AddTeam(teamname, color, grave, fort, voicepack) ===
+=== !AddTeam(teamname, color, grave, fort, voicepack, flag) ===
-
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. +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.-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: -!AddTeam("team 1", 14483456, "Simple", "Island", "Default")
+!AddTeam("team 1", 14483456, "Simple", "Island", "Default", "hedgewars")
=== !AddHog(hogname, botlevel, health, hat) ===Adds a new hedgehog for current team (last created one), with botlevel and specified health also head. @@ -279,7 +279,7 @@Places the specified gear exactly at the position (x,y).-=== !SetGearVelocity(gearUid, dx, dy) === +=== !SetGearVelocity(gearUid, dx, dy) (dev) ===Gives the specified gear the velocity of dx, dy.