(Created page with "{{Instruction_Top}} ==== Description ==== ==== Uses ==== ==== Similar Instructions ==== {{Instruction_Bottom}}") |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
==== Description ==== | ==== Description ==== | ||
Get the value and number from a specified index of a component register. | |||
==== Uses ==== | |||
Can typically be used to get the target of a Turret, Repair Component, Deconstructor or Miner. | |||
0 and 1 are both treated as index 1. | |||
A component seldom has multiple registers, but for the few that exist, any number from 1 - n can be used to specify what index to read data from. | |||
[[File:ExampleComponentIndex.PNG]] | |||
In its most dynamic usage, it can be used to read directly from the parameters of another Behavior Controller, which can have a theoretically infinite amount of parameters. | |||
==== Similar Instructions ==== | ==== Similar Instructions ==== | ||
[[Instructions/Set to Component|Set to Component]] | |||
{{Instruction_Bottom}} | {{Instruction_Bottom}} |
Latest revision as of 06:15, 17 September 2023
Description[edit | edit source]
Get the value and number from a specified index of a component register.
Uses[edit | edit source]
Can typically be used to get the target of a Turret, Repair Component, Deconstructor or Miner.
0 and 1 are both treated as index 1.
A component seldom has multiple registers, but for the few that exist, any number from 1 - n can be used to specify what index to read data from.
In its most dynamic usage, it can be used to read directly from the parameters of another Behavior Controller, which can have a theoretically infinite amount of parameters.
Similar Instructions[edit | edit source]
Instructions | |
---|---|
Unit | |
Move | |
Component | |
Flow | |
Math | |
Global |