How to modify vehicle's behaviour?

Place to get help with not working mods / modding interface.
Post Reply
oip
Manual Inserter
Manual Inserter
Posts: 1
Joined: Sun May 07, 2017 12:12 pm
Contact:

How to modify vehicle's behaviour?

Post 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.

321freddy
Fast Inserter
Fast Inserter
Posts: 125
Joined: Fri Sep 23, 2016 10:16 pm
Contact:

Re: How to modify vehicle's behaviour?

Post 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.

Post Reply

Return to “Modding help”