Jump to content

Looking for a ground unit Waypoint loop (patrol) script


-VSAAF- Sender

Recommended Posts

Hi folks

 

Does anyone know of a script that can be used for ground units to enable them to patrol routes?

 

Thanks.

 

Hi,This is a script i have been using for about 18 months. All credit goes to "Grimes" and his incredible knowledge, I have been using Mist v3.3 and works just fine.

loop patrol 1.txt

Modules NOT currently in my hanger

 

Yak 52/F-14 Tomcat/CE II/Mig-19/I-16/FW-A-8/JF-17/Supercarrier

 

 

 

My system:

 

 

MSI Z97 Gaming 5 mobo

3.5 GHz Intel Core i5 4690k

H100i CPU Cooler

16 GB 1866 MHz DDR3 Hyper X Fury Red

MSI GTX980ti GPU

EVGA 850W PSU

Samsung EVO 850 500GB SSD

128gb Plextor M.2 storage (Boot Drive)

Windows 10 X64 Professional

Acer XB281HK G-sync monitor

Trackir 5

MFG Crosswind pedals

T M Warthog Hotas

 

Link to comment
Share on other sites

Place a vehicle on the map and call it: BTR1 and plot a path

the last WP/Advance WP Action: Perform Command / Run Script / mist.ground.patrol('BTR1', nil, 20)

 

TRIGGERS:

--------------

Once(Init MiST) //Time More(2)//Do Script File(mist.lua)

Playing: F-16C

Intel i7-13700KF, 64GB DDR5 @5600MHz, RTX 4080 ZOTAC Trinity, WIN 11 64Bit Prof.

Squadron "Serious Uglies" / Discord-Server: https://discord.gg/2WccwBh

Ghost0815

Link to comment
Share on other sites

At the moment you just call the Script: mist.ground.patrol('BTR1', nil, 20)

 

Put mist.ground.patrol('BTR1', nil, 20) not behind Name, put it in the box below!

Playing: F-16C

Intel i7-13700KF, 64GB DDR5 @5600MHz, RTX 4080 ZOTAC Trinity, WIN 11 64Bit Prof.

Squadron "Serious Uglies" / Discord-Server: https://discord.gg/2WccwBh

Ghost0815

Link to comment
Share on other sites

At the moment you just call the Script: mist.ground.patrol('BTR1', nil, 20)

 

Put mist.ground.patrol('BTR1', nil, 20) not behind Name, put it in the box below!

 

I'm also still trying to wrap my head around lua and scripting and all that goodness. Just found this thread and want to also understand- hope you don't mind me jumping in here like this...

 

So if I understand this line of thought correctly, I should put this "mist.ground.patrol('BTR1', nil, 20)" in the box in the pic above that Beamrider42 posted above where he put the "Mist.lua" script line? Beamrider42, is that what you did to make it work? Off to go give this a try and see if I can add a minor tool to my toolbox. :detective_2:

 

EDIT: Nope, not sure what to do here. Any clarification for the extremely dense would be greatly appreciated!


Edited by Justificus
Add Info

Justificus

 

System Specs:

i7 4970K @ 4.8, GTX 1080 SC, 32GB G.Skill DDR 2133,Thermaltake Level 10 Full Tower Case, Noctua NH-D15 6 Cooler, Win 10 Pro, Warthog, CH Pro Pedals, CH Throttle Quadrant, Oculus, 1 32" & 2 19" Monitors

 

 

 

Modules Owned: A-10C I+II, Ka-50, FC3, F-86, Mig-15, Mig21, UH-1H, Mi-8, CA, P-51D, BF-109K-4, FW-190 D-9, Hawk, NTTR, M-2000C, SA342, F-5E, Spit Mk. IX, AJS-37, Normandy, WWII A.P., AV-8B, F/A-18C, L-39, Persian Gulf, Mig-19P, I-16, Super Carrier, F-16, Channel, Syria

Link to comment
Share on other sites

Okay, after re-reading mwd2's comment a couple of more times I finally figured out what box he was talking about... see? I told you I was dense! ;) But I now have another question. Is it possible to have more than one ground vehicle group using this script and do you call them all "BTR1"? If not, what is the appropriate naming convention? Thanks!

Justificus

 

System Specs:

i7 4970K @ 4.8, GTX 1080 SC, 32GB G.Skill DDR 2133,Thermaltake Level 10 Full Tower Case, Noctua NH-D15 6 Cooler, Win 10 Pro, Warthog, CH Pro Pedals, CH Throttle Quadrant, Oculus, 1 32" & 2 19" Monitors

 

 

 

Modules Owned: A-10C I+II, Ka-50, FC3, F-86, Mig-15, Mig21, UH-1H, Mi-8, CA, P-51D, BF-109K-4, FW-190 D-9, Hawk, NTTR, M-2000C, SA342, F-5E, Spit Mk. IX, AJS-37, Normandy, WWII A.P., AV-8B, F/A-18C, L-39, Persian Gulf, Mig-19P, I-16, Super Carrier, F-16, Channel, Syria

Link to comment
Share on other sites

No.

 

The MiST.lua is a script library, which have mist.ground.patrol() as command.

So you need to load first the libray.

 

Once(Init MiST) //Time More(2)//Do Script File(mist.lua)

 

------------------------------------------------------------------------

the mist.ground.patrol() is particular for the unit, so you need to put the script to the last WP of the unit.

So Beamrider just named his Run Script mist.ground.patrol('BTR1', nil, 20) , but in the light grey box is the script area not behind NAME:

 

Attached: mission file - use F11 CAM over Anapa

mist.ground.patrol-Script.JPG.7e9b7686063fd6a090ba690d07c3926d.JPG

mist.ground.patrol_sample.miz


Edited by mwd2

Playing: F-16C

Intel i7-13700KF, 64GB DDR5 @5600MHz, RTX 4080 ZOTAC Trinity, WIN 11 64Bit Prof.

Squadron "Serious Uglies" / Discord-Server: https://discord.gg/2WccwBh

Ghost0815

Link to comment
Share on other sites

But I now have another question. Is it possible to have more than one ground vehicle group using this script and do you call them all "BTR1"? If not, what is the appropriate naming convention? Thanks!

 

 

1000 units.... or more (addicted on your pc system) - you can give them every name you can imagine.

Playing: F-16C

Intel i7-13700KF, 64GB DDR5 @5600MHz, RTX 4080 ZOTAC Trinity, WIN 11 64Bit Prof.

Squadron "Serious Uglies" / Discord-Server: https://discord.gg/2WccwBh

Ghost0815

Link to comment
Share on other sites

mdw2, thanks for taking the time to explain further. With your help I now think I fully understand how this works. As for the naming convention, I thought the script itself needed a specific name to be used. Can you also use this with infantry in addition to vehicles or do you need a separate script for that to work with infantry? Thanks again for your help!

Justificus

 

System Specs:

i7 4970K @ 4.8, GTX 1080 SC, 32GB G.Skill DDR 2133,Thermaltake Level 10 Full Tower Case, Noctua NH-D15 6 Cooler, Win 10 Pro, Warthog, CH Pro Pedals, CH Throttle Quadrant, Oculus, 1 32" & 2 19" Monitors

 

 

 

Modules Owned: A-10C I+II, Ka-50, FC3, F-86, Mig-15, Mig21, UH-1H, Mi-8, CA, P-51D, BF-109K-4, FW-190 D-9, Hawk, NTTR, M-2000C, SA342, F-5E, Spit Mk. IX, AJS-37, Normandy, WWII A.P., AV-8B, F/A-18C, L-39, Persian Gulf, Mig-19P, I-16, Super Carrier, F-16, Channel, Syria

Link to comment
Share on other sites

Every ground unit can go on patrol with this script command. You need only to add this script to the last WP and the unit will go in a circle as long the mission runs.

 

You can also send a whole group of different units on a patrol - you need only the group name in the script.

Playing: F-16C

Intel i7-13700KF, 64GB DDR5 @5600MHz, RTX 4080 ZOTAC Trinity, WIN 11 64Bit Prof.

Squadron "Serious Uglies" / Discord-Server: https://discord.gg/2WccwBh

Ghost0815

Link to comment
Share on other sites

Every ground unit can go on patrol with this script command. You need only to add this script to the last WP and the unit will go in a circle as long the mission runs.

 

You can also send a whole group of different units on a patrol - you need only the group name in the script.

 

Cool! Thanks for the info sir. Looks like I've got some work to do making some new missions. Also, thanks to all who helped with Mist, I'm constantly amazed at how much is able to be done with that, IF you know what you're doing that is... :smilewink:

Justificus

 

System Specs:

i7 4970K @ 4.8, GTX 1080 SC, 32GB G.Skill DDR 2133,Thermaltake Level 10 Full Tower Case, Noctua NH-D15 6 Cooler, Win 10 Pro, Warthog, CH Pro Pedals, CH Throttle Quadrant, Oculus, 1 32" & 2 19" Monitors

 

 

 

Modules Owned: A-10C I+II, Ka-50, FC3, F-86, Mig-15, Mig21, UH-1H, Mi-8, CA, P-51D, BF-109K-4, FW-190 D-9, Hawk, NTTR, M-2000C, SA342, F-5E, Spit Mk. IX, AJS-37, Normandy, WWII A.P., AV-8B, F/A-18C, L-39, Persian Gulf, Mig-19P, I-16, Super Carrier, F-16, Channel, Syria

Link to comment
Share on other sites

  • 1 year later...
I have 4 similar units, all with unique names, scripted do to the same thing, but most of them either stop at the end of the route or repeat the route only 2 or 3 times, then stop. I'm not sure what the problem is.

 

Until version 4.3.74 MiST has problems with on road routes:

  • It stops after some loops (about 3?).
  • DCS crashes in the absence of 'doubleBack' option.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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