SA-MP Forums Archive
Help with drivable Submarine script (Need help with diving) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help with drivable Submarine script (Need help with diving) (/showthread.php?tid=558098)



Help with drivable Submarine script (Need help with diving) - Dustly - 16.01.2015

http://*********/gAP84nYc_Ck

Soooo I attached a submarine to a marquis.. Now I need a way for it to dive. I tried angular velocity.. cant get it to work correctly. If the sub goes under water, the marquis will automaticly rise back up to the surface over time, and the front of the ship points high into the air on ascent.
I need something similar to velocity that sends the sub down, forward, and keeps the front of the marquis from rising upwards as it goes back to the surface. Dives are meant to be temporary and activated with a command. I would appreciate the help. I am open to suggestions on how to accomplish this. Ive already dealt with the health issue.

Also, I linked the sub to a custom interior u can find here on the forums. Later I would like to add torpedos too. I'm open to suggestions.