Throttle and altitude settings in patrol mission

All discussions & material related to Command's Lua interface

Moderators: RoryAndersonCDT, michaelm75au, angster, MOD_Command

Post Reply
wunderxx
Posts: 3
Joined: Wed Apr 29, 2020 11:52 am

Throttle and altitude settings in patrol mission

Post 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![;)]
thewood1
Posts: 10367
Joined: Sun Nov 27, 2005 6:24 pm
Location: Boston

RE: Throttle and altitude settings in patrol mission

Post by thewood1 »

Might want to ask here:

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

Dedicated to Lua.
KnightHawk75
Posts: 1850
Joined: Thu Nov 15, 2018 7:24 pm

RE: Throttle and altitude settings in patrol mission

Post 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.
wunderxx
Posts: 3
Joined: Wed Apr 29, 2020 11:52 am

RE: Throttle and altitude settings in patrol mission

Post 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. ;)
jkgarner
Posts: 175
Joined: Thu Apr 30, 2020 12:42 pm

RE: Throttle and altitude settings in patrol mission

Post 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?

[&:]
KnightHawk75
Posts: 1850
Joined: Thu Nov 15, 2018 7:24 pm

RE: Throttle and altitude settings in patrol mission

Post 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.

jkgarner
Posts: 175
Joined: Thu Apr 30, 2020 12:42 pm

RE: Throttle and altitude settings in patrol mission

Post 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?






KnightHawk75
Posts: 1850
Joined: Thu Nov 15, 2018 7:24 pm

RE: Throttle and altitude settings in patrol mission

Post 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.


Post Reply

Return to “Lua Legion”