Toggle search
Search
Toggle menu
Toggle personal menu
Editing
Instructions/Set to Component
From Desynced Wiki
Read
Edit
Edit source
View history
Page
Discussion
More actions
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Instruction_Top}} ==== Description ==== Used to set a value to a component register with a specified index. ==== Uses ==== Can typically be used to set a Turret, Repair Component, Deconstructor or Miner to a specific target, but for Radar, it is probably advisable to use the [[Instructions/Radar|Radar]] instruction instead. Can also be used to set the production recipe for factory buildings. Indexes 0 and 1 are both treated as index 1. A component seldom has multiple input registers, but for the few that exist, any number from 1 - n can be used to specify what index to write data to. [[File:ExampleComponentIndex.PNG]] In its most dynamic usage, it can be used to write directly to the parameters from another Behavior Controller, which can have a theoretically infinite amount of parameters. The third argument (Group/Index) specifies the 1-based index of the component to set from the list of components when filtered by the Component/Index argument. Take for a building with the components below: [[File:Set to component group example.png]] In this example setting Component/Index to an Assembler the possible values for Group/Index are only 1. If you set Component/Index to Fabricator the possible values for Group/Index are also only 1 as there is only one Fabricator slotted in this building. ==== Similar Instructions ==== [[Instructions/Get from Component|Get from Component]], [[Instructions/Radar|Radar]], [[Instructions/Mine|Mine]] {{Instruction_Bottom}}
Summary:
Please note that all contributions to Desynced Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Desynced Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Infobox
(
edit
)
Template:InstructionStatistics
(
edit
)
Template:InstructionStatistics Layout
(
edit
)
Template:Instruction Bottom
(
edit
)
Template:Instruction Nav Entry
(
edit
)
Template:Instruction Top
(
edit
)
Template:InstructionsNav
(
edit
)
Template:Navbox
(
edit
)