Code: Select all
defineObject{
name = "river_sockets",
baseObject = "base_floor_decoration",
components = {
{
class = "Model", --"crystal_flower"
name = "s1",
offset = vec(0.35, 0, 1.49),
model = "assets/models/items/crystal_flower.fbx",
},
{
class = "Clickable",
name = "crystalflower",
offset = vec(0.35, 0, 1.49),
size = vec(.2,.2,.2),
frontCacing = false,
debugDraw = true,
maxDistance = 1,
onClick = function(self) self.go.s1:disable() self.go.crystalflower:disable() setMouseItem(spawn("crystal_flower").item) end,
},
{
class = "Model", --"blooddrop_cap"
name = "s2",
offset = vec(-0.35, 0, 1.1),
model = "assets/models/items/blooddrop_cap.fbx",
},
{
class = "Clickable",
name = "blooddropcap",
offset = vec(-0.35, 0, 1.1),
offset = vec(-0.35, 0, 1.1),
size = vec(.2,.2,.2),
frontCacing = false,
debugDraw = true,
maxDistance = 1,
onClick = function(self) self.go.s2:disable() self.go.blooddropcap:disable() setMouseItem(spawn("blooddrop_cap").item) end,
},
{
class = "Model", --"etherweed"
name = "s3",
offset = vec(-0.35, 0, 0.4),
model = "assets/models/items/milkreed.fbx",
},
{
class = "Clickable",
name = "etherweed",
offset = vec(-0.35, 0, 0.4),
size = vec(.2,.4,.2),
frontCacing = false,
debugDraw = true,
maxDistance = 1,
onClick = function(self) self.go.s3:disable() self.go.etherweed:disable() setMouseItem(spawn("etherweed").item) end,
},
{
class = "Model", --"brass_key"
name = "s4",
offset = vec(0.8, -0.05, 0.55),
model = "assets/models/items/key_brass.fbx",
},
{
class = "Clickable",
name = "brasskey",
offset = vec(0.8, -0.05, 0.55),
size = vec(.2,.2,.2),
frontCacing = false,
debugDraw = true,
maxDistance = 1,
onClick = function(self) self.go.s4:disable() self.go.brasskey:disable() setMouseItem(spawn("brass_key").item) end,
},
{
class = "Model", --"skull"
name = "s5",
offset = vec(-0.5, 0, -0.85),
rotation = vec(0, 0, 0),
model = "assets/models/items/skull.fbx",
},
{
class = "Clickable",
name = "skull",
offset = vec(-0.5, 0, -0.85),
size = vec(.2,.3,.2),
frontCacing = false,
debugDraw = true,
maxDistance = 1,
onClick = function(self) self.go.s5:disable() self.go.skull:disable() setMouseItem(spawn("skull").item) end,
},
},
placement = "floor",
editorIcon = 104,
}