Re: The Custom Alcove Thread. (Neikun, Batty and Crisman)
Posted: Wed Nov 14, 2012 8:35 am
Amazing.
Official Legend of Grimrock Forums
http://grimrock.net/forum/
Code: Select all
defineObject{
name = "wall_hook_bow_alcove",
class = "Alcove",
anchorPos = vec(0, 1.37, -0.09),
anchorRotation = vec(90, -4, 0),
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)
local allowed = {"longbow", "short_bow"}
for i = 1, #allowed do
if item.name == allowed[i] then
return item.name == allowed[i] and self:getItemCount() == 0
end
end
end,
placement = "wall",
replacesWall = false,
editorIcon = 92,
}
I can't find the file mod_assets/models/env/hook_pillar_wall.fbx on skydrive... :-/Grimwold wrote:My first alcove... hope it's not something that's been done before... I only changed a couple of lines, the bulk of the object is cloned from the key hook by Crisman.
You will need the hook_pillar_wall model that Crisman created, which was linked below (but doesn't seem to be there anymore).Code: Select all
defineObject{ name = "note_hook", class = "Alcove", model = "mod_assets/models/env/hook_pillar_wall.fbx", anchorPos = vec(0, 1.55, -0.1), anchorRotation = vec(90, 0, 0), targetPos = vec(0, 1.6, 0), targetSize = vec(0.2, 0.2, 0.2), placement = "wall", replaceWall = false, editorIcon = 92, onInsertItem = function (self, item) return item.name == "note" and self:getItemCount() == 0 end, }
crisman wrote:Sorry I haven't put it on online yesterday, I had a problem. But here you go now!
https://skydrive.live.com/redir?resid=7 ... 14E98!5304
Ok, from here you can download the model file.