Sys_Get_All_Visible_Space_Objects_In_System |
Hey Everyone,
Does Sys_Get_All_Visible_Space_Objects_In_System return only space objects visible by sensors, or does it include all items that are visible in system such as planets that are no longer in range of radar?
I'm looking for a function that only returns items within the radar range, and I dont see any from the Scripting Document.
Thanks
-Unnamed

Re: Sys_Get_All_Visible_Space_Objects_In_System
It makes a list of all the objects that an Empire can see (ie can be currently seen) in a given system.
-----

Re: Sys_Get_All _Visible_Space_ Objects_In_System
Thank you. You sucessfully deformed the whole website layout with your one-word subject title.

Re: Sys_Get_All_Visible_Space_Objects_In_System
That's not quite what I said - things that "currently" can be seen, which would mean what is in sensor range and sight level. However, the AI will be able to remember if a planet not in sensor range belongs to another empire etc.
-----

Re: Sys_Get_All_Visible_Space_Objects_In_System
Sensors have a sight range (distance they can see) and a sight level (ability to see in obscuring sectors or to detect cloaked ships).
The AI knows if a planet belongs to another as long as the planet itself has been discovered at some point (since planets are remembered from memory). This is because the script accesses who is the owner of this object - which extends beyond any game play sight level etc. There is no storage of this information.
-----





Re: Sys_Get_All_Visible_Space_Objects_In_System
If this is only whats visible in sensor range, or there is a function to check only whats in sensor range, I may be able to give the AI a memory.
-unnamed