Hi again lol. I am trying to get this Object to move left or right (Below code). I can move the object up/down and forward and backwards NP. I am using the offset = vec routine. 0.3, 0.5 = up/down + 0,0,0 = back/forward I think which works on one of the 0's. Does anyone know how I can move this object left or right?
I can do it in the Editor using setworldpositon, but this is not what I need. The object below is the water effect on the wall fountain thxs for any help
Code: Select all
defineObject{
name = "sx_fountain_effect",
components = {
{
class = "Particle",
particleSystem = "sx_fountain_effect",
offset = vec(0.3, 0.5 + 0, 0, 0),
--offset = vec(0.3, 0.3, 0,1),
},
{
class = "Light",
offset = vec(0, 1.8, 0),
range = 5,
color = vec(0.2, 0.75, 0.5),
brightness = 4,
fillLight = true,
},
{
class = "Controller",
onActivate = function(self)
self.go.light:enable()
self.go.particle:enable()
end,
onDeactivate = function(self)
self.go.light:disable()
self.go.particle:disable()
end,
onToggle = function(self)
if self.go.light:isEnabled() then
self.go.light:disable()
self.go.particle:disable()
else
self.go.light:enable()
self.go.particle:enable()
end
end,
},
},
placement = "floor",
editorIcon = 88,
}