Page 1 of 1

Throttle and altitude settings in patrol mission

Posted: Wed Apr 29, 2020 12:26 pm
by wunderxx
I am trying to update the settings of my patrol mission through Lua, I noticed that there are a lot of parameters relating to throttle and altitude such as 'transitThrottleAircraft', 'stationThrottleAircraft', etc. According to the official CommandLua site, the value of those parameters is a string type. Does anyone know what values should be passed for those parameters?

Thanks a lot in advance![;)]

RE: Throttle and altitude settings in patrol mission

Posted: Wed Apr 29, 2020 2:01 pm
by thewood1
Might want to ask here:

https://www.matrixgames.com/forums/tt.asp?forumid=1681

Dedicated to Lua.

RE: Throttle and altitude settings in patrol mission

Posted: Wed Apr 29, 2020 2:09 pm
by KnightHawk75
Should just be the preset throttle code-words I think
or '0-4' zero being the lowest ie fullstop\hover\stop, and 4 being highest (flank\afterburner);
'fullstop'
'hover'
'stop'
'loiter'
'creep'
'cruise'
'full'
'flank'
At the moment I don't think you can set a specific # via lua using SetMission, just a preset for throttle.

Altitude should be min,minaltitude,minalt, low,low1000,low2000, med,medium12000, high25000,high,high36000,max,maxalt,maxaltitude or '9000 FT' or '9000 M' default is meters if not specified.

RE: Throttle and altitude settings in patrol mission

Posted: Thu Apr 30, 2020 11:20 am
by wunderxx
Thank you so much!

I have tried those values and it turns out that, currently the preset code-words for throttle are 'loiter/creep', 'cruise', 'full', and 'flank',
as for altitude, I can pass a string-type number to it through the Lua command. Hopes this information help. ;)

RE: Throttle and altitude settings in patrol mission

Posted: Fri Feb 26, 2021 10:20 pm
by jkgarner
I was looking up information on speed and stumbled across this post:
ORIGINAL: KnightHawk75

Should just be the preset throttle code-words I think
or '0-4' zero being the lowest ie fullstop\hover\stop, and 4 being highest (flank\afterburner);
'fullstop'
'hover'
'stop'
'loiter'
'creep'
'cruise'
'full'
'flank'
At the moment I don't think you can set a specific # via lua using SetMission, just a preset for throttle.

Altitude should be min,minaltitude,minalt, low,low1000,low2000, med,medium12000, high25000,high,high36000,max,maxalt,maxaltitude or '9000 FT' or '9000 M' default is meters if not specified.
Now I am working with ground units...rather Facility units marked as mobile units, not ships, not aircraft, not subs.

How do the throttle settings work with these units?
Do they correspond with a ground speed based on the unit type in any way? If so, where does one find the speed the unit actually travels at>

Or should I just skip these and use manual speed and set them to what I believe are reasonable values?

Any thoughts?

[&:]

RE: Throttle and altitude settings in patrol mission

Posted: Sat Feb 27, 2021 2:18 pm
by KnightHawk75
ORIGINAL: jkgarner

Now I am working with ground units...rather Facility units marked as mobile units, not ships, not aircraft, not subs. How do the throttle settings work with these units? Do they correspond with a ground speed based on the unit type in any way? If so, where does one find the speed the unit actually travels at>
Facilities basically work the same, though from experience creep --> cruise == 21 max, full --> flank = 30 max
Or should I just skip these and use manual speed and set them to what I believe are reasonable values?
Any thoughts?
Yup if you want something to go say 5knots max and it in theory can go 30 set it to manual and 5, obviously land effects may slow it from that max.


RE: Throttle and altitude settings in patrol mission

Posted: Tue Mar 02, 2021 11:09 am
by jkgarner
My version of PE does not seem to allow me to use manualspeed at all.
Other members of my team have reported this issue with regards to aircraft.

Until we get a version that works, I can not set the ground unit speeds.
To get my ground unit timing code to work properly, I need to find out how fast a ground-unit will travel at the various throttle speeds:

'1','Stop','Loiter','Hover' (0 presumed)
'2','Creep'
'3','Cruise'
'4','Full','Flank'

Is there a way to query the database to learn these numbers?
I have not found them in the database, but perhaps I missed them.
Perhaps they are set to some convenient (hard-coded) value?
I don't know.

There are different classes or categories of mobile ground uints, each may have a different set of speeds. e.g. A mechanized infantry will move at faster speeds that a simple infantry unit. But my version of PE does not seem to recognize these categories yet anyway. (I think I need to get an upgrade)

So what speeds to ground units (moobile facility units) travel at the various throttle settings?







RE: Throttle and altitude settings in patrol mission

Posted: Tue Mar 02, 2021 1:53 pm
by KnightHawk75
They aren't in the database for ground units, I believe they are hard coded, I provided the values above as I've noticed them for facilities that move in 1147.16 retail, again keep in mind terrain\land-cover type if enabled for the scene makes it more variable than just those maxes provided. If someone has more specific numbers hopefully they can provide.