I guess I may have to create new models using the LoG2 assets as simply copying the old scrips and models didn't seem to work.
I will play around with GMT and look around a bit more to see what I can come up with, but any help would be appreciated.
My main concern is how do I take this...
Code: Select all
defineObject{
name = "lock_alcove_iron",
class = "Alcove",
model = "mod_assets/models/wall_lock_A.fbx",
replacesWall = false,
anchorPos = vec(0.015, 1.41, -0.08),
targetPos = vec(0, 1.37, -0.58),
targetSize = vec(0.3, 0.3, 0.3),
anchorRotation = vec(-70, 90, 0),
placement = "wall",
onInsertItem = function(self, item)
return item.name == "iron_key" and self:getItemCount() == 0
end,
placement = "wall",
editorIcon = 20,
}Code: Select all
defineObject{
name = "dungeon_alcove",
baseObject = "base_alcove",
components = {
{
class = "Model",
model = "assets/models/env/dungeon_wall_alcove.fbx",
staticShadow = true,
},
{
class = "Occluder",
model = "assets/models/env/dungeon_wall_alcove_occluder.fbx",
}
},
}