REQ: Lock Units

REQ: Lock Units

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

Moderator: Moderators

Post Reply
User avatar
Jazcash
Posts: 5309
Joined: 08 Dec 2007, 17:39

REQ: Lock Units

Post by Jazcash »

Every now and then, I like to keep certain units in a certain place for the whole game. However, because I like to use Ctrl Z and other various commands that may select the unit, it ends up getting moved accidentally.

I was thinking a lock command would be nice. For example, when you have units where you want them, you can "lock" them down and then they won't move again for the rest of the game, even if you select them. The only way to move them again, is to "unlock" them.

Would be nice if one of you cleva fellas could cook this up <3
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Re: REQ: Lock Units

Post by BrainDamage »

use ctrl 1 .. 9 groups

then use ctrl x instead of ctrl z, it will skip selecting grouped units

not exactly what you asked, but will work
User avatar
Jazcash
Posts: 5309
Joined: 08 Dec 2007, 17:39

Re: REQ: Lock Units

Post by Jazcash »

Brain Damage wrote:use ctrl 1 .. 9 groups

then use ctrl x instead of ctrl z, it will skip selecting grouped units

not exactly what you asked, but will work
Hmm ok, didn't know about Ctrl+X, cheers.
luckywaldo7
Posts: 1398
Joined: 17 Sep 2008, 04:36

Re: REQ: Lock Units

Post by luckywaldo7 »

Ctrl-x is the 2nd best kept secret-thats-not-supposed-to-be-a-secret in spring, after the scrollable widget list.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: REQ: Lock Units

Post by AF »

Scrollable widget list say what?
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: REQ: Lock Units

Post by lurker »

The F11 list scrolls vertically.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: REQ: Lock Units

Post by AF »

Ohhh I thought that was obvious
User avatar
Licho
Zero-K Developer
Posts: 3805
Joined: 19 May 2006, 19:13

Re: REQ: Lock Units

Post by Licho »

You can also use autogroup - it has key to remove given unit from it.
It also has another for select nears unit from given autogroup and remove it from that autogroup.

Ideal for picking one roach to micro etc.
User avatar
Tribulex
A.N.T.S. Developer
Posts: 1894
Joined: 26 Sep 2009, 21:26

Re: REQ: Lock Units

Post by Tribulex »

i like to lock my llts in place. hate it when they wander into the enemy base, and so the enemies. They think its hacks...
Post Reply

Return to “Lua Scripts”