How to modify vehicle's behaviour?
How to modify vehicle's behaviour?
I would like to change the way vehicles such as cars, tanks and trains behave. How do I do that? I know the basics and I was able to modify their variables like speed, but how to modify their logic? Do I need to use the api? I've looked at it, but couldn't find any examples, so I don't know how to use it.
Re: How to modify vehicle's behaviour?
This totally depends on what you actually want to change with these vehicles.
If you tell us what exactly you want to achieve we can give you better help and some examples.
- As you said you can change things like speed, rotation speed, guns, health,... inside the data.lua.
- You can change the train schedule of a train using the API.
- Other than that you can of course create, destroy, teleport, modify cargo of vehicles (API)
If you tell us what exactly you want to achieve we can give you better help and some examples.
My mods: