Jump to content

Recommended Posts

Evening,

 

I'm trying to prevent AI driver and gunner from dismounting as part of a counter ambush drill by using lockDriver and lockTurret, but they can't help themselves. In the vehicle's init field I have:

this lockDriver true; this lockTurret [[0],true];

An IED goes off and the car looses its wheels, everyone survives and, as intended, the AI occupying cargo positions dismount. However, the driver and gunner also dismount. Have I misread the wiki, or is the lock state of the vehicle ignored once it is immobilised?

 

Share this post


Link to post
Share on other sites

Lock is ignored but this should work:

_vehicle allowCrewInImmobile true;

 

  • Like 1

Share this post


Link to post
Share on other sites

lockXYZ is only for "entering" the Vehicle.

  • Like 1

Share this post


Link to post
Share on other sites
3 minutes ago, dscha said:

lockXYZ is only for "entering" the Vehicle.

 

Thanks for the heads up.

 

11 minutes ago, theend3r said:

Lock is ignored but this should work:


_vehicle allowCrewInImmobile true;

 

 

Cheers theend3r. That'll solve it perfectly.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×