Template:Lua/Function

From Starbounder - Starbound Wiki
Jump to: navigation, search

Usage

== NAME ==
{{Lua/Function
|NAME
[|type=TYPE
[|subtype=SUBTYPE]
[|ret=RETURNDESCRIPTION]]
desc=DESCRIPTION
[|info=INFORMATION]
[|links=LINKS]}}

Examples

robot.takeOverWorld

Tells the robot to try and take over the world.
Additional Information:
Requires enough power and the robot to be active.
Parameters:
  • position: (table<x,y,z>) Where to start taking over. z is height on the planet.
Returns: boolean
true if enough power is available, otherwise false.
Usage:
boolean robot.takeOverWorld (table<x,y,z> position)
See also: robot.active