Jump to content

[QUESTION] Submarine


Dzsozi (h03)

Recommended Posts

Posted

Hello community!

Today I was thinking about if is this possible to script a submarine in MTA SA. So, is this possible shomehow? If so, what functions should I use? Thanks in advance!

Your signature image is too large.

Removed

Posted
function fCancelEvent() 
-- if you are in a submarine 
cancelEvent () 
-- if end 
end 
  
addEventHandler ( "onClientPlayerDamage", getRootElement(), fCancelEvent ) 

Use this to not die underwater when in a submarine, for the rest you can create your own bindKey and make new controls but I don't know if there's a way to cancel the water physics holding you from going underwater.

"If debugging is the process of removing software bugs, then programming must be the process of putting them in."

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...