Hi all,
So i’m still in developpement of my gamemode, and this time, no problems, just questions :
So when you spawn a TDMCar in singleplayer (sandbox), you can edit the bodygroup in context menu. How can i perform these actions by code (no gui) ?
I want to display speed of the current vehicle in my hud. How can i get the actual entity speed ?
I want to save the player’s vehicle’s tuning, how can i do it by JSon ? If it’s possible. To explain more about save :
- The saved file needs to be named player’s steam id
- Each part of the file needs to be named as vehicle’s ID
- Each part must contains entry “COLOR”, entry “MODELS” and entry “LIGHTS”
How can i define a JSon like that with gmod lua ?
Remember that i’m basing my gamemode on nothing it’s base is just “base” gamemode, so theres no sandbox.
Well… there is something close to what your saying about - Each part must contains entry “COLOR”, entry “MODELS” and entry “LIGHTS”. But it works as attachments, Which the modeler/animator will put bones done for you. And then you use the bones, and tell what the code to do with the bone. Example:
exhaust out of the little pipes at the end of cars. Well… Anywas enjoy!
I would post this on CodeHire and get someone to do it for you. If you do not want to do that i would suggest studying other gamemodes (PERP would be a good start since it has a strong focus toward vehicles)