Page 1 of 1
How to modify vehicle's behaviour?
Posted: Sun May 07, 2017 12:19 pm
by oip
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?
Posted: Sun May 07, 2017 6:28 pm
by 321freddy
This totally depends on what you actually want to change with these vehicles.
- 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)
A lot of things can be done but the API is limited.
If you tell us what exactly you want to achieve we can give you better help and some examples.