Simple Question: How do I tell which unit is selected?

Simple Question: How do I tell which unit is selected?

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

Moderator: Moderators

Post Reply
Nihility
Posts: 3
Joined: 15 Mar 2012, 06:58

Simple Question: How do I tell which unit is selected?

Post by Nihility »

I was reading through the lua scripting section and maybe I missed it, but I could not see how to determine which unit is currently selected, or if a group is selected, whichever one is prioritized for interaction (like the zero-k interface). I need to do this such that I may rebind keys in a script in luarules.

Please inform me of the corresponding function, or process.
Post Reply

Return to “Lua Scripts”