Jump to content
Revolving DCON

Is it possible to prevent AI from getting out of a vehicle that's upside down?

Recommended Posts

Is there a way to do this without getting extremely hacky?

 

I have a tank attached to an aerial vehicle and when upside down they get out. I think I've tried just about every default function there is and don't really want to go down the road of event handlers that just delete and replace them every-time they get out.

 

Thanks!

  • Like 1

Share this post


Link to post
Share on other sites

Would enableSimulation false on the AI members work for you?

  • Like 1
  • Confused 1

Share this post


Link to post
Share on other sites
15 minutes ago, AZCoder said:

Would enableSimulation false on the AI members work for you?

 

That... was surprisingly simple....... lol Thanks!

  • Like 1

Share this post


Link to post
Share on other sites

@Grumpy Old Man - That doesn't work. At least when I tested earlier. Neither does disableAI for that matter.

Share this post


Link to post
Share on other sites
10 hours ago, pierremgi said:

What for with "enabled sim false" Ais ??

AI can't do anything when simulation disabled. Why's that confusing? I figure if a tank is flying in the air as depicted above, the AI inside don't need to be active.

In my experience, once an AI has been inside a vehicle, lock is useless.

Share this post


Link to post
Share on other sites

Only thing I ever find to work in A2 was to use the Get Out Eventhandler to slam them back in their seats as soon as they try to exit.

  • Haha 1

Share this post


Link to post
Share on other sites
16 minutes ago, AZCoder said:

AI can't do anything when simulation disabled. Why's that confusing? I figure if a tank is flying in the air as depicted above, the AI inside don't need to be active.

In my experience, once an AI has been inside a vehicle, lock is useless.

So, there is no interest to have a disabled crew inside tank while flying. And yes lock is useless.

Share this post


Link to post
Share on other sites
On 3/2/2018 at 4:43 PM, f2k sel said:

Only thing I ever find to work in A2 was to use the Get Out Eventhandler to slam them back in their seats as soon as they try to exit.

Sadly this is the very thing I wanted to avoid lol!

Share this post


Link to post
Share on other sites

I think they might get out cause the vehicle is deemed knocked out. Have you tried: 

vehicle allowCrewInImmobile bool

vehicle setUnloadInCombat [allowCargo, allowTurrets]

 

Share this post


Link to post
Share on other sites
On 3/6/2018 at 10:12 AM, mrcurry said:

I think they might get out cause the vehicle is deemed knocked out. Have you tried: 

vehicle allowCrewInImmobile bool

vehicle setUnloadInCombat [allowCargo, allowTurrets]

 

Yep I have indeed! Still no luck! I mean I can do it with simulationEnabled but it's... Not the best solution :/

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

×