Jump to content

How to script altitude/speed change for AI tanker?


Recommended Posts

Posted

Can anyone help me with this. I have a single tanker in my mission with a race track orbit waypoint. I would like to use F10 menu commands to make this tanker change speed and altitude. I could make more waypoints and use a waypoint switch trigger, but this is very messy and causes the tanker to go back to the beginning of the race track orbit point every time it changes.

 

Is there some script command for example to change the speed/alt?

Fighting for peace is like screwing for virginity.

Posted

You should be able to set orbits as triggered actions if I remember, then it's just a matter of triggering the correct orbit instead of a switch waypoint.

  • Like 1
  • Thanks 1

Awaiting: DCS F-15C

Win 10 i5-9600KF 4.6 GHz 64 GB RAM RTX2080Ti 11GB -- Win 7 64 i5-6600K 3.6 GHz 32 GB RAM GTX970 4GB -- A-10C, F-5E, Su-27, F-15C, F-14B, F-16C missions in User Files

 

Posted

Wow, the solution was too simple to notice, lol. Was thinking this way too complicated, thanks!

Fighting for peace is like screwing for virginity.

  • 1 month later...
Posted
41 minutes ago, jackmckay said:

Similar request, except locked on AGL with two waypoints, takeoff and landing. Someone?

Orbits don't have a AGL option, so you'll need to manually set waypoints and use the switch waypoint command to make the AI loop them.

Awaiting: DCS F-15C

Win 10 i5-9600KF 4.6 GHz 64 GB RAM RTX2080Ti 11GB -- Win 7 64 i5-6600K 3.6 GHz 32 GB RAM GTX970 4GB -- A-10C, F-5E, Su-27, F-15C, F-14B, F-16C missions in User Files

 

Posted
4 hours ago, Exorcet said:

Orbits don't have a AGL option, so you'll need to manually set waypoints and use the switch waypoint command to make the AI loop them.

Did some more tests. Its messy. I just want limit AI unit's altitude without some extra wp settings. Case with race track orbit is ok for AWACS or Tanker, but for direct flight AI randomizes altitude and approach.

Posted

Yeah setSpeed and setAlttitude both work. Am using both on the Grayflag server to do precisely that for players to request speed and altitude changes for the tanker so that we don't have to have a special one for the A-10 or whatever. 


You can also just generate a new task via https://wiki.hoggitworld.com/view/DCS_task_mission and set randomized altitude values there. 

  • Like 1

The right man in the wrong place makes all the difference in the world.

Current Projects:  Grayflag ServerScripting Wiki

Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread)

 SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...