Jump to content
Sign in to follow this  
bobby budnick

Allow a vehicle to drive underwater through configs or scripting?

Recommended Posts

Hello all I was interested in a way to drive land vehicles underwater. 

 

Currently there are two problems:

Engine damage - if the vehicle is nuclear powered then there is no intake with which to suck in water and hydrolock the engine.

Auto crew eject - if the vehicle has it's own onboard oxygen supply then there is no reason to eject the crew.

 

I don't mind modding the vehicle or changing it through scripting.  How could this be accomplished?

 

 

Share this post


Link to post
Share on other sites

The reason the crews eject is because it reaches a certain damage threshold so they get out so they don't die in a vehicle they consider destroyed.

I'm not sure if this'd work in regards to stopping the vehicle being "flooded" when it goes under the water, unable to test atm however, just try in the vehicles INIT field in the editor putting - 

this allowdamage false;

Share this post


Link to post
Share on other sites

Thanks very much for the reply.  It inspired me to write a script using that command that works for now.  It's not ideal because any time the vehicle is even partly in water it becomes invincible and people could use it to cheat.  I would appreciate any further input as to how to improve this.

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
Sign in to follow this  

×