building queue order optimization lua script?

building queue order optimization lua script?

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

Moderator: Moderators

Post Reply
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

building queue order optimization lua script?

Post by TradeMark »

when i build a rectangular area of buildings, for example:

Code: Select all

oooooo
oooooo
the build queue order becomes ALWAYS:
----->
<-----

so the order is always 1 horizontal line first, then continue on second line.. etc...

it would be best if it chose the order depending on the size of the rectangle:

Code: Select all

if(width > height){
   vertical_order();
} else {
   horizontal_order(); // default atm
}
will make it faster to build nanotowers or other small buildings
Post Reply

Return to “Lua Scripts”