Dzsozi (h03) Posted November 27, 2014 Posted November 27, 2014 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!
ViRuZGamiing Posted November 27, 2014 Posted November 27, 2014 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.
Dzsozi (h03) Posted November 27, 2014 Author Posted November 27, 2014 (edited) Maybe setElementPosition and setElementRotation would be a good way to script it? I mean if you press forwards button then a custom binded fuction, in this case setElementPosition would be incrased with setElementPosition + 5 or I don't know, something like that. Edited November 29, 2014 by Guest
ViRuZGamiing Posted November 27, 2014 Posted November 27, 2014 isElementInWater() use this too + EDIT: Open this script https://community.multitheftauto.com/index.php?p= ... s&id=10020 Read it, learn from it, make it better as your own.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now