local config = require "snowball/fences/config"
local function pRequire(modulName)
local state, result_or_error = pcall(require, modulName)
if state then
return result_or_error
else
return nil, result_or_error
end
end
function data()
return {
info = {
minorVersion = 0,
severityAdd = "NONE",
severityRemove = "WARNING",
name = _("Ziehbare Bäume"),
description = _("Enthält: Ziehbare Bäumer"),
authors = {
{
name = "Jeremy_mux",
role = "CO-CREATOR",
tfnetId = 47445,
},
},
tags = {"assets", },
tfnetId = 0,
minGameVersion = -1,
dependencies = { "snowball_fences_1" },
modid = "jeremy_ziehbare_baeume_1",
requiredMods = { -- optional, Informationen über geladene Mods
{ -- Angaben über einen oder mehrere Mods
modId= "snowball_fences_1", -- optional, modid
steamId = 1957631242, -- optional, steam workshop id
tfnetId = 5041, -- optional, id der Webdisk auf transportfever.net
url = "https://www.transportfever.net/filebase/index.php?entry/5041-z%C3%A4une/", -- optional, url zum Download der Mod
minMinorVersion = 8 -- optional, minimale minorVersion
}, -- optional, weitere Mods, durch Komma getrennt
},
visible = true
},
options = {
},
runFn = function (settings)
local fences = pRequire("snowball/fences/main")
if ((type(fences) == "table") and (type(fences.fences) == "table")) then
fences.fences["jeremy_baeume"] = {
{
post = "elderberry.mdl",
middle = nil,
decoration = nil,
length = 5.8,
offset = {0.15,.5,0.15},
invertedModel = true,
},
}
end
end,
}
end
Alles anzeigen
local fences = require "snowball/fences/main"
function data()
return {
type = "ASSET_TRACK",
buildMode = "MULTI",
categories = {"fences"},
snapping = {
rail = true,
road = true,
},
availability = {
yearFrom = 0,
yearTo = 0
},
description = {
name = _("Ziehbare Bäume"),
description = _("Bäume von UG zum ziehen")
},
order = 0,
skipCollision = true,
autoRemovable = true,
params = fences.createParamsAdvanced(
-- {
-- "../../../elderberry.tga",
-- },
fences.fences.jeremy_baeume[1].offset
),
updateFn = function(params)
if params.snowball_fences_type == 0 then
return fences.previewAdvanced(
params,
fences.fences.jeremy_baeume[1].offset,
fences.fences.jeremy_baeume[1].post)
end
end
}
end
Alles anzeigen
Schau mal
Das ist meine Variante - ich beschränke es aktuell auf ein Baum/Strauch