Difference between revisions of "Cheats"

From Zero-K
Jump to navigation Jump to search
(Created page with ":''See also: [https://springrts.com/wiki/UI_commands UI commands]'' There are several '''cheat''' commands that can be used in the game. == atm == Syntax: <code>/atm</code>...")
 
m (Nicer organization)
Line 2: Line 2:
 
There are several '''cheat''' commands that can be used in the game.
 
There are several '''cheat''' commands that can be used in the game.
  
== atm ==
+
== Cheat mode ==
Syntax: <code>/atm</code>
 
 
 
Gives 1,000 metal and energy to the entering player's team.
 
 
 
== cheat ==
 
 
Before any other cheat command can be used, cheating mode must be enabled. This is done by typing <code>/cheat</code> in console in singleplayer, or <code>!cheat</code> in multiplayer.
 
Before any other cheat command can be used, cheating mode must be enabled. This is done by typing <code>/cheat</code> in console in singleplayer, or <code>!cheat</code> in multiplayer.
 
* If <code>!cheat</code> fails to work, makesure ally/spectator chat mode is off (remove the <code>a:</code> or <code>s:</code> prefix)
 
* If <code>!cheat</code> fails to work, makesure ally/spectator chat mode is off (remove the <code>a:</code> or <code>s:</code> prefix)
Line 13: Line 8:
 
Entering the command again disables cheat mode.
 
Entering the command again disables cheat mode.
  
== give ==
+
== Commands ==
 +
=== atm ===
 +
Syntax: <code>/atm</code>
 +
 
 +
Gives 1,000 metal and energy to the entering player's team.
 +
 
 +
=== give ===
 
Syntax: <code>/give [optional number] <unitname> [optional team number]</code>
 
Syntax: <code>/give [optional number] <unitname> [optional team number]</code>
  
Line 22: Line 23:
 
If no team is specified, will give to the player's current team, or the team currently being spectated.
 
If no team is specified, will give to the player's current team, or the team currently being spectated.
  
== globallos ==
+
=== globallos ===
 
Syntax: <code>/globallos [optional team number]</code>
 
Syntax: <code>/globallos [optional team number]</code>
  
 
Enables/disables full map view for that team (no team specified means it applies to everyone).
 
Enables/disables full map view for that team (no team specified means it applies to everyone).
  
== godmode ==
+
=== godmode ===
 
Syntax: <code>/godmode</code>
 
Syntax: <code>/godmode</code>
  
 
When enabled, any player (including spectators) can give commands to units on any team.
 
When enabled, any player (including spectators) can give commands to units on any team.
  
== nocost ==
+
=== nocost ===
 
Syntax: <code>/nocost</code>
 
Syntax: <code>/nocost</code>
  

Revision as of 04:47, 14 September 2017

See also: UI commands

There are several cheat commands that can be used in the game.

Cheat mode

Before any other cheat command can be used, cheating mode must be enabled. This is done by typing /cheat in console in singleplayer, or !cheat in multiplayer.

  • If !cheat fails to work, makesure ally/spectator chat mode is off (remove the a: or s: prefix)

Entering the command again disables cheat mode.

Commands

atm

Syntax: /atm

Gives 1,000 metal and energy to the entering player's team.

give

Syntax: /give [optional number] <unitname> [optional team number]

Spawns a given number of units at the location of the mouse cursor. Can also be used to spawn features, e.g. wreckage.

Unit names are the machine-facing identifiers rather than the human names, e.g. cloakraid for the Glaive. Unit names can be found on GitHub or in the source of the unit's page on the wiki.

If no team is specified, will give to the player's current team, or the team currently being spectated.

globallos

Syntax: /globallos [optional team number]

Enables/disables full map view for that team (no team specified means it applies to everyone).

godmode

Syntax: /godmode

When enabled, any player (including spectators) can give commands to units on any team.

nocost

Syntax: /nocost

Enables/disables building everything for free and near-instantly.