Icon representing a recipe

Recipe: Selected All Unlocked

created by marsfan

Profile


Name
Selected All Unlocked
ID
103541
Shared with
Public
Parent
None
Children
None
Created on
May 24, 2020 at 19:12 PM UTC
Updated on
May 24, 2020 at 19:12 PM UTC
Description

Selects all unlocked segments. Useful for design or docking puzzles, where you do not want to waste CPU power trying to perform operations on locked segments

Best for


Code


selection.DeselectAll() for i=1, structure.GetCount() do if (structure.IsLocked(i) == false) then selection.Select(i) end end

Comments