Complex hub question - TC
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
Complex hub question - TC
In case of more than one compex hubs in the same sector, how to find out which station belongs to which hub?
I need some command for it, but I can't figure the right one out. Anyone got an idea?
I need some command for it, but I can't figure the right one out. Anyone got an idea?
This rather unorthodox command will return all the stations in a complex if given the refobj is a complex hub.
This is not intended behavior of the command, just a side effect of how it works.
this may also work, ive never tried this one tho (if this one does work, use this rather then the above)
After you have the array's of all complexes in the sector, you can test against them using the ("<RetVar/IF> find <Value> in array: <Value>") command to see if the station belongs to any of them.
Code: Select all
$ComplexStationArray = $ComplexHub->get all stationary objects: include asteroids=[FALSE]
Code: Select all
$ComplexStationArray = $ComplexHub->get factory array from sector
After you have the array's of all complexes in the sector, you can test against them using the ("<RetVar/IF> find <Value> in array: <Value>") command to see if the station belongs to any of them.
[ external image ]
"One sure mark of a fool is to dismiss anything that falls outside his experience as being impossible."
―Farengar Secret-Fire
"One sure mark of a fool is to dismiss anything that falls outside his experience as being impossible."
―Farengar Secret-Fire
No way that i know of unfortunately.Nicoman35 wrote:Hat down, Jack , no idea how you guys know all this, but this works perfecly - both ways work. Many thanks for that.
And because this was too easy for you - here another question: This tubes between complex hub stations. Is there any way to alter or move them by script?
[ external image ]
"One sure mark of a fool is to dismiss anything that falls outside his experience as being impossible."
―Farengar Secret-Fire
"One sure mark of a fool is to dismiss anything that falls outside his experience as being impossible."
―Farengar Secret-Fire