Page 1 of 1

Driving instead of teleporting?

Posted: Sat Feb 04, 2023 4:23 pm
by Blast33
Is it possible to think with me, through this one?

The idea is to have units (SAMs/SSM TELs/ tanks of coastal defense) to drive from their barracks to wartime positions, if an Event has been triggered.
My idea was to make an (inactive) ferry mission to a FOB for the vehicles and when enemy aircraft are entering a border area this Event will be activated, and the vehicles will start moving away from their vulnerable barracks.

Question #1: The ferry missions are activated by the incoming aircraft, but the vehicles do not move. What can I do to activate the movement of the vehicles?
Question #2: is it possible to delay this action with, lets say an hour (people have to get alarmed, drive to their work, drink a coffee ;) , get their gear, from -up etc) before the move starts?
Queston #3: Is it possible that they follow a preplanned route to their wartime location (in this case to an FOB to get the ferry mission going)?

I looked at the LUA page but I'm a beginner with that kind of stuff.
A test .scen is attached. Any help is appreciated!
SSM unit movement.zip
(288.85 KiB) Downloaded 11 times

Re: Driving instead of teleporting?

Posted: Sat Feb 04, 2023 6:47 pm
by Gunner98
I think the simplest method to do this is:

1) Set up an area trigger which goes off when the enemy AC enter it
2) Set up a patrol mission - inactive - for the ground units. Ferry missions don't work for land units, only air.
3) When the AC triggers the area, activate the mission and the ground units will drive there
4) if you want the ground units to stop at the other end instead of patrolling, set up another trigger to de-activate the mission
5) if you want to delay it, set up a marker to teleport into an area on the other side of the globe when the AC hits the first trigger, and when that marker has been in an area for the delay time you want, trigger the ground mission

As for the pre-planned route, that is another mission. Lay out a support mission starting at the FOB and ending at the deployment area. Make sure the lines don't cross and the first point of the mission is closest to the FOB. Set it to once only and the ground units will follow that path. Not exact but it works

B

Re: Driving instead of teleporting?

Posted: Sat Feb 04, 2023 9:34 pm
by Blast33
These are pro-suggestions Gunner98, as expected I must say..
Thank you very much for sharing, it must have cost you some brainwaves originally.

Cheers!

Re: Driving instead of teleporting?

Posted: Sun Feb 05, 2023 2:02 am
by Gunner98
Blast33 wrote: Sat Feb 04, 2023 9:34 pm These are pro-suggestions Gunner98, as expected I must say..
Thank you very much for sharing, it must have cost you some brainwaves originally.

Cheers!
It did take a few attempts... :D

Re: Driving instead of teleporting?

Posted: Mon Feb 06, 2023 11:27 am
by Parel803
For the delay other options could be:
https://www.matrixgames.com/forums/view ... y#p4991219
https://www.matrixgames.com/forums/view ... y#p4796057
Thanks to the original posters
best regards GJ

Re: Driving instead of teleporting?

Posted: Mon Feb 06, 2023 6:52 pm
by Blast33
Thank you all for the time and effort, makes this forum very nice :geek: