Rotate buildings script?
Moderator: Moderators
Rotate buildings script?
Hi, I wonder if it's possible to rotate buildings using LUA? Or is anyone currently making it possible? Thanks
I rotate factories with COB. But the yardmap doesn't follow 
As for the bind commands:
From default uikeys.txt
From some mysterious hidden secret:
Uhm, none of this is Lua, I'm irrelevant again.

As for the bind commands:
From default uikeys.txt
Code: Select all
bind [ buildfacing inc
bind Shift+[ buildfacing inc
bind ] buildfacing dec
bind Shift+] buildfacing dec
Code: Select all
bind numpad2 buildfacing south
bind numpad4 buildfacing west
bind numpad6 buildfacing east
bind numpad8 buildfacing north
Let the secret be revealed:
https://taspring.clan-sy.com/svn/spring ... n/cmds.txt
https://taspring.clan-sy.com/svn/spring ... n/cmds.txt
Currently in Kernel Panic they do the "set HEADING", it doesn't turn the yardmap, but it turns the default exit waypoint (I prefer that to assigning a waypoint in a LUA widget). Strangely, the model turned, but not the buildpad. Had to make the script turn the buildpad piece again. Since the yardmap doesn't turn, the hole only turn 180°, while the kernel turns each 90°.
Last time we talked about turning building in Lua, Trepan seemed to say turning yardmaps in Lua wouldn't be that easy, so I didn't even try.
But, at least for Kernel Panic, turning the yardmap isn't as a priority as writing a better script to determine which cardinal point to turn, as currently it only takes into account the position relatively to other units, and it would be more helpful if it took into account the nearby slopes (which I can with just bos, I just need to decide which way do I do it and start typing it).
Last time we talked about turning building in Lua, Trepan seemed to say turning yardmaps in Lua wouldn't be that easy, so I didn't even try.
But, at least for Kernel Panic, turning the yardmap isn't as a priority as writing a better script to determine which cardinal point to turn, as currently it only takes into account the position relatively to other units, and it would be more helpful if it took into account the nearby slopes (which I can with just bos, I just need to decide which way do I do it and start typing it).