Arma 3
How to stop AI from getting out of a vehicle?
So, I have a convoy filled with OPFOR AI, and whenever I drive up in a vehicle(with friendly AI for now, but there will be players in the car) and start shooting at the moving vehicle(while also driving my vehicle), after a while the AI will stop and get out. I don't want that to happen. I want the convoy to keep moving no matter what. The only way a car should stop is if it's gotten to the end of its waypoint, which is a misison fail, or if it gets blown up(and of course if the driver dies).

I tried to solve this problem by have the drivers of the cars in a seperate group everyone else in the convoy, and setting their waypoints and behavior to "careless", while keep all other AI at "safe" or "aware". This didn't work. Then I tried setting the lock to "no one can get in", hoping that it would also prevent AI from getting out. That didn't work either.

So does anyone know how to do what I'm suggesting? Thank you for reading, and please respond as soon as convienient.
< >
Showing 1-6 of 6 comments
IM SORRY BUFFALO Oct 24, 2017 @ 8:33pm 
lock i think works only for players but im unsure. maybe try lockCargo and lockDriver if the AI is driving.
Tajin Oct 25, 2017 @ 2:14am 
this setUnloadInCombat [false, false];
IM SORRY BUFFALO Oct 25, 2017 @ 12:06pm 
Originally posted by Tajin:
this setUnloadInCombat [false, false];
i never knew about that, thats good to know man thanks.
Tajin Oct 26, 2017 @ 5:30am 
If in doubt always check this list of available commands, you can often find some unexpected gems in there:
https://community.bistudio.com/wiki/Category:Scripting_Commands_Arma_3
(that is when the wiki is out of maintenance again)
Last edited by Tajin; Oct 26, 2017 @ 5:30am
TheSurvivorGuy Nov 12, 2017 @ 5:35am 
Thank you!
Ricky_Rx Apr 1, 2018 @ 3:08am 
The units like to be little "A Holes" when it comes to keeping them in the HEMTT Transport no matter what I do. I gave up with the specific vehicle after I broke the squad's AI. They all got ran over one at a time by the truck somehow from behind while driving forward when disimbarking and left a cookie crumb trail of 17 dead bodies to the destination >.>

Moral of the story: Don't get lost in the sauce with the HEMTT Transport.
< >
Showing 1-6 of 6 comments
Per page: 1530 50

Date Posted: Oct 24, 2017 @ 1:30pm
Posts: 6