build unit widget

build unit widget

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
unstjohnny
Posts: 5
Joined: 03 Oct 2007, 20:39

build unit widget

Post by unstjohnny »

Hi!

It may be a stupid question, but I don't know, how to create a simple widget, which do only a little unit creation. For example I want the idle commander to build a solar collector.
It is possible to do widget like that or not?

Thanks, for the answers,

J
User avatar
kiki
Posts: 859
Joined: 05 Nov 2007, 03:06

Re: build unit widget

Post by kiki »

its possible
however, please note that its a bad idea imo :/ you can m stall early game if you do this, and it can do stuff like uncloak ur commander etc.
unstjohnny
Posts: 5
Joined: 03 Oct 2007, 20:39

Re: build unit widget

Post by unstjohnny »

So, it is possible. Could you write here some sample code?

J
Post Reply

Return to “Lua Scripts”