Simple, perfect illusionary walls in all tilesets.
Posted: Fri Nov 02, 2012 11:47 pm
I posted this,(about 6 pages deep in a thread) and thought it might be handy for some of you because it keeps coming up.
place this in your objects.lua, and you will have perfect illusionary walls, visible from both sides, in all 3 stock dungeon tilesets.(Sorry, its a copy/paste so no "select all" hotlink)
defineObject{
name = "illusion_dungeon",
class = "TorchHolder",
model = "assets/models/env/dungeon_secret_door.fbx",
anchorPos = vec(0.05, 1.53, -0.25),
anchorRotation = vec(0, -20, -90),
placement = "wall",
editorIcon = 84,
}
defineObject{
name = "illusion_temple",
class = "TorchHolder",
model = "assets/models/env/temple_secret_door.fbx",
anchorPos = vec(0.05, 1.53, -0.25),
anchorRotation = vec(0, -20, -90),
placement = "wall",
editorIcon = 84,
}
defineObject{
name = "illusion_prison",
class = "TorchHolder",
model = "assets/models/env/prison_secret_door.fbx",
anchorPos = vec(0.05, 1.53, -0.25),
anchorRotation = vec(0, -20, -90),
placement = "wall",
editorIcon = 84,
}
Must be placed on a wall and moved into position. If you have a custom tileset, copy one of these objects and just rename the model string to point at your tileset's secret door model. (And give it a new name!)aka. northern_dungeon_secret_door.fbx, corrupt_secret_door.fbx etc. Feel free to ask any questions
place this in your objects.lua, and you will have perfect illusionary walls, visible from both sides, in all 3 stock dungeon tilesets.(Sorry, its a copy/paste so no "select all" hotlink)
defineObject{
name = "illusion_dungeon",
class = "TorchHolder",
model = "assets/models/env/dungeon_secret_door.fbx",
anchorPos = vec(0.05, 1.53, -0.25),
anchorRotation = vec(0, -20, -90),
placement = "wall",
editorIcon = 84,
}
defineObject{
name = "illusion_temple",
class = "TorchHolder",
model = "assets/models/env/temple_secret_door.fbx",
anchorPos = vec(0.05, 1.53, -0.25),
anchorRotation = vec(0, -20, -90),
placement = "wall",
editorIcon = 84,
}
defineObject{
name = "illusion_prison",
class = "TorchHolder",
model = "assets/models/env/prison_secret_door.fbx",
anchorPos = vec(0.05, 1.53, -0.25),
anchorRotation = vec(0, -20, -90),
placement = "wall",
editorIcon = 84,
}
Must be placed on a wall and moved into position. If you have a custom tileset, copy one of these objects and just rename the model string to point at your tileset's secret door model. (And give it a new name!)aka. northern_dungeon_secret_door.fbx, corrupt_secret_door.fbx etc. Feel free to ask any questions