I have a new fun one. Wall hooks holding a sword.
Code: Select all
defineObject{
name = "wall_hook_alcove",
class = "Alcove",
anchorPos = vec(0, 1.50, -0.1),
targetPos = vec(0, 1.50, -0.1),
targetSize = vec(0.6, 0.5, 0.6),
model = "assets/models/env/metal_hooks_wall.fbx",
placement = "wall",
replacesWall = false,
editorIcon = 92,
}
The only problem is that you would have to edit what things can be placed there.
EDIT: With long_sword only option
any idea how one might add multiple strings of the onInsertItem = function?
Code: Select all
defineObject{
name = "wall_hook_alcove",
class = "Alcove",
anchorPos = vec(0, 1.50, -0.1),
targetPos = vec(0, 1.50, -0.1),
targetSize = vec(0.6, 0.5, 0.6),
model = "assets/models/env/metal_hooks_wall.fbx",
onInsertItem = function(self, item)
return item.name == "long_sword" and self:getItemCount() == 0
end,
placement = "wall",
replacesWall = false,
editorIcon = 92,
}