Long story short i have no idea how to properly pull values from components
component:
component.stargate.getEnergyRequiredToDial(address)
This component is from another mod, but i just need to learn the principle to pull certain values.
Im trying to pull the boolean value (canOpen) and the value open from the return energyMap
When running the component command in lua i get in return:
{canOpen=true, keepAlive=11886, open=27386566}
As you can see it returns 3 values.
Now i want to run this same component command but only get the canOpen boolean in return