Fleets register as Space_Object_Type_Ship |
Am I correct in believing that fleets would register as Space_Object_Type_Ship?
-Unnamed
Re: Fleets register as Space_Object_Type_Ship
So if using this code
call Sys_Get_All_Visible_Space_Objects_In_System(sys_long_Player_ID, sys_index, sobj_list)
set sobj_count := sobj_list.count()
if (sobj_count > 0) then
for sobj_index := 1 to sobj_count do
set sobj_id := sobj_list.get(sobj_index)
set sobj_type := Sys_Get_Space_Object_Type(sobj_id)
If one of the space objects was a fleet, what would sobj_type be then. 0?
Maybe as unitgroup? See what happens if you rig up the log system or the debug system to output the space object type for a fleet.
The above code will return all the ships, but not the fact that they are in a fleet, or what fleet that is.
Or they are a list that proxies a space object.
I could be wrong, but I think you have to go through all the space objects in a fleet, and total up their shields (or any other stat). I don't think you can directly get a fleet's shields, etc.
-Unnamed
I'm not Kwok, so I could be wrong, but I hope that helped.
"Only by being constantly at war with evil in all things, including yourself, can you truely know peace."
Download my mod here: GidMod




Re: Fleets register as Space_Object_Type_Ship
No. The ships in the fleet would register as individual ships.
Space Empires Depot | SE:V Balance Mod