Beach Puzzle Statue revamp
Posted: Tue Dec 08, 2015 5:25 pm
So I'm currently trying to make it so the beach puzzle statue can be used as a surface instead of something that accepts items as it currently does.
I thought If I gave it the surface class here it would work but instead if like crashes hard.. Any particular reason why? Is it possible for this object to be turned into something like an alcove? I'm trying to make it so when you walk up you can collect weapons from it.
Code: Select all
defineObject{
name = "final_puzzle_statue",
baseObject = "base_wall_decoration",
components = {
{
class = "Model",
model = "assets/models/env/forest_statue_pillar_03.fbx",
offset = vec(0, -1, 0),
staticShadow = true,
},
{
class = "Clickable",
offset = vec(-0.02, 1.45, -0.4),
size = vec(0.6, 0.2, 0.2),
--debugDraw = true,
},
{
class = "Surface",
offset = vec(-0.1, 1.37, -0.37),
rotation = vec(0, 0, -3),
--debugDraw = true,
},
{
class = "ItemConstrainBox",
offset = vec(0, 1.5, 0),
size = vec(0.9, 3, 0.9),
--debugDraw = true,
},
{
class = "ProjectileCollider",
size = vec(1.1, 3, 0.8),
--debugDraw = true,
},
},
placement = "wall",
}