UI commands: Difference between revisions
fix category |
added how to use |
||
| Line 1: | Line 1: | ||
[[Engine_Development|Development]] < [[Lua_Scripting|Lua Scripting]] < {{FULLPAGENAME}} | [[Engine_Development|Development]] < [[Lua_Scripting|Lua Scripting]] < {{FULLPAGENAME}} | ||
if you enter these commands into ingame chat, you must add a /<br> | |||
for example:<br> | |||
/info<br> | |||
Some commands will also autocomplete if you press TAB.<br> | |||
In Lua scripts, these commands can be used like this:<br> | |||
Spring.SendCommands("resbar 0")<br> | |||
notice the missing / when used like this.<br> | |||
<br> | |||
List of commands: | |||
select<br> | select<br> | ||
selectunits<br> | selectunits<br> | ||
Revision as of 12:17, 4 October 2010
Development < Lua Scripting < UI commands
if you enter these commands into ingame chat, you must add a /
for example:
/info
Some commands will also autocomplete if you press TAB.
In Lua scripts, these commands can be used like this:
Spring.SendCommands("resbar 0")
notice the missing / when used like this.
List of commands:
select
selectunits
deselect
shadows
water
advshading
say
w
echo
setf
seti
sets
drawinmap
drawlabel
mouse[1-5]
viewselection
move[forward, back, left, right, up, down, fast, slow]
team
spectator
specteam
specfullview
ally
group[0-9]
lastmsgpos
char[, all, ally, spec]
track
trackoff
trackmode
showhealthbars
pause
debug
nosound
volume
unitreplyvolume
savegame
createvideo
updatefov
drawtrees
dynamicsky
gameinfo
hideinterface
hardwarecursor
[increase, decrease]viewradius
[more, less]trees
[more, less]clouds
speedup
slowdown
controlunit
showshadowmap
showstandard
showelevation
toggleradarandjammer
showmetalmap
showpathmap
yardmap4 (does nothing)
togglelos
sharedialog
quitwarn
quit
[inc, dec]guiopacity
screenshot
grabinput
clock
cross
fps
info
techlevels
cmdcolors
ctrlpanel
font
aiselect
vsync
safegl
resbar
tooltip
console
endgraph
fpshud
mapmarks
allmapmarks
luaui
minimap
grounddecals
maxparticles
gathermode
pastetext
buffertext
inputtextgeo
lodscale
wiremap
setgamma
crash
exception
divbyzero
give
send
save
atm
desync (debug only)
resync
take
luarules