Dzsozi (h03) Posted November 27, 2014 Share 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! Link to comment
ViRuZGamiing Posted November 27, 2014 Share 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. Link to comment
Dzsozi (h03) Posted November 27, 2014 Author Share 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 Link to comment
ViRuZGamiing Posted November 27, 2014 Share 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. Link to comment
Dzsozi (h03) Posted November 27, 2014 Author Share Posted November 27, 2014 Thanks, I'll try something! Link to comment
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