Code: Select all
collision_mask = {
layers = {
player = true,
car = true,
train = true,
is_object = true,
layer_52 = true
},
consider_tile_transitions = true,
not_colliding_with_itself = true
}Code: Select all
collision_mask = {
layers = {
player = true,
car = true,
train = true,
is_object = true,
layer_52 = true
},
consider_tile_transitions = true,
not_colliding_with_itself = true
}Code: Select all
local MobileFactory = data.raw.car.MobileFactory
local MFDeploy = data.raw["simple-entity-with-owner"].MFDeploy
MFDeploy.collision_mask = table.deepcopy(MobileFactory.collision_mask)
Code: Select all
mf.collision_mask = {
layers = {
player = true,
car = true,
train = true,
is_object = true,
layer_52 = true
},
consider_tile_transitions = true,
not_colliding_with_itself = true
}