Getting an Object's or Fleet's Current movement left??? |
Hey,
Is there a way to get a Object's or Fleet's current movement left??
I see a function for getting an space_object's max speed. Does this return its available movement whatever that is, or does it return its max conceivable speed assuming it has supplies and such (or before executing previous orders).
Also is there a function for getting a Fleet's max speed or current movement points left? (I havent seen one so far).
Any help would be greatly appreciated.
-Unnamed

Re: Getting an Object's or Fleet's Current movement left???
Couldn't you do a compare on the distance to destination and the computed movement points for the ship by component (since it only gives max). I know most mod functions don't work in the script portion so I don't think you can use those.
hhmm, I think you would have to set a bunch of constants for the ship size versus engine movement, but that gets messy and tedious.

Re: Getting an Object's or Fleet's Current movement left???
Sys_Get_Vehicle_Design_Space_Movement will give the space movement by design...Sys_Get_Space_Object_Maximum_Movement gives the current object...Sys_Get_System_Distance_Between_Solar_Systems will give the distance in a weird value, not sure if thats what your looking for...
If I see something I'll post it here for you
Not too many AI modders around, Kwok, Gideon and yourself seem the bulk of them (limited resource pool...)

Re: Getting an Object's or Fleet's Current movement left???
Re: Getting an Object's or Fleet's Current movement left???
Not too many AI modders around, Kwok, Gideon and yourself seem the bulk of them (limited resource pool...)
Try using Sys_Get_Hex_Distance_Between_Sectors to get the distance between two...uhhh...sectors.
"Only by being constantly at war with evil in all things, including yourself, can you truely know peace."
Download my mod here: GidMod




Re: Getting an Object's or Fleet's Current movement left???
That is how fast it can currently go, not how much movement is left.
To get a fleet's max movement, you would need to do a search through all of the space objects in that fleet, and find the one with the lowest max movement.
I don't think there is a way to get remaining movement, but I could be wrong.
"Only by being constantly at war with evil in all things, including yourself, can you truely know peace."
Download my mod here: GidMod