Page 1 of 1

calling ui commands

Posted: 03 Oct 2010, 12:56
by AnimateDream
So how exactly would I go about calling these guys http://springrts.com/wiki/UI_commands
from lua scripts?

Re: calling ui commands

Posted: 03 Oct 2010, 13:30
by Niobium
From the wiki:

Code: Select all

Spring.SendCommands
 ( string command1 [, string command2 [ ... ] ] ) -> nil
 ( {string command1, string command2, ...} ) -> nil
i.e. Spring.SendCommands("water 4")

Re: calling ui commands

Posted: 03 Oct 2010, 14:26
by AnimateDream
Thank you Niobium. I didn't notice it in the wiki before. :oops:

My attention was initially drawn to Spring.SendLuaUIMsg by the name which I of course found had nothing to do with what I needed.