Browse Source

Update docs

Daniele Bartolini 10 years ago
parent
commit
0481226a08
1 changed files with 4 additions and 1 deletions
  1. 4 1
      docs/lua_api.txt

+ 4 - 1
docs/lua_api.txt

@@ -351,6 +351,9 @@ World
 	**spawn_unit** (world, name, [position, rotation]) : Unit
 		Spawns a new instance of the unit *name* at the given *position* and *rotation*.
 
+	**spawn_empty_unit** (world) : Unit
+		Spawns a new empty unit and returns its id.
+
 	**destroy_unit** (world, unit)
 		Destroys the given *unit*.
 
@@ -423,7 +426,7 @@ Level
 SceneGraph
 ==========
 
-	**create** (sg, unit) : int
+	**create** (sg, unit, position, rotation, scale) : int
 		Creates the transform for the *unit*.
 
 	**destroy** (sg, id)