Search found 2 matches

by Mathradi
Tue Aug 25, 2020 8:01 pm
Forum: Modding help
Topic: creating car prototype
Replies: 4
Views: 846

Re: creating car prototype

Makes perfect sense. Thanks for the help!
by Mathradi
Tue Aug 25, 2020 5:12 pm
Forum: Modding help
Topic: creating car prototype
Replies: 4
Views: 846

creating car prototype

Hello! I'm trying to make a car that detonates in an explosion when it hits something. First step: create a new car prototype. I've tried duplicating the original car with this in data.lua:

local myCar = util.table.deepcopy(data.raw["car"]["car"])
myCar.name = "my-car"
myCar.minable.result = "my ...

Go to advanced search