Recently I have been trying to create a boat vehicle with a model I found on the workshop. The model owner stated that if anyone wants to use the model to actually make a working vehicle, then they can. Their are no tutorials to try and get you started in the right path, so I took several different addons and looked at their base components, and started my addon off of them. I have so far gotten the basics down for the vehicle but their are still several issues I am having. I am trying to figure out how to orientate the boat to the correct position, so that the controls and camera direction will match up. The second thing I am trying to figure out is why my vehicle is disappearing whenever entered and whenever exited. You can still walk around on the ship, but the model is invisible. I obviously am really new to the lua language but any help would be appreciated.
Oh cool add me on steam and we'll talk
what you'd probably want to do is use the boat as a physics body, set its bouyancy so it floats, parent some seats to it, grab the inputs of the player in the drivers seat and use that to apply force to the rear of the boat where the engine is to simulate it
once you have that solid base down you can then add more special effects like engine sounds, water spray etc
How would I set the boat to a physics body and do all of the things stated above. My boat is currently based off of the air boat but with a different model and some changes to the base code. As I said before I am new to lua and do not know a lot of the main components to it, I know other languages but am just starting lua. I apologize with my limited knowledge of lua, but as stated before any help is always very appreciated.
you could use [url]https://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/indexb82f.html[/url]
to change the buoyancy if the function still exists.. , and a keep up right constraint if you want although the buoyancy should look realistic.
[url]https://wiki.garrysmod.com/page/constraint/Keepupright[/url]
Sorry, you need to Log In to post a reply to this thread.