You could use Lua script to store the offset values inside of some vs values - set the default values for both to 0. Create a pair of scene values & name them x & y. Now create an at end of scene action under the scene actions tab & create an execute a script action part & add this to it... (change "example" to actual name of the scene & "rock" to actual name of the scene object)hallo,ich habe wieder eine frage und hoffe auf hilfe hier im forum.ich verändere die position eines objekts mit "move object to (x,y)". das funktioniert soweit. sobald der charakter aber den raum erneut betritt, ist das object wieder in der grundposition. gibt es eine möglichkeit, dass sich das programm "merkt", wo das objekt platziert wurde?Hello, I have another question and hope for help here in the forum. I change the position of an object with "move object to (x, y)". This works so far. But as soon as the character enters the room again later, the object is in the default position. Is there a possibility that the program "remembers", where the object was placed?constantin
local scn = Scenes["example"]
local off = scn.SceneObjects["rock"].ObjectOffset
scn.SceneValues["x"].Int = off.x
scn.SceneValues["y"].Int = off.y
obj = game.CurrentScene.SceneObjects["rock"]
obj.ObjectOffset = { x = game.CurrentScene.SceneValues["x"].Int, y = game.CurrentScene.SceneValues["y"].Int }
thanks afrlme, but it's not working. i can see that the variable for the offset is saved correctly, but it just doesnt move the object. strangely i doesnt even react, when i try to set it with "move object to". i just reacts the first time, not after revisiting the scene again.Isn't that a bug in the current version? I'm sure I remember someone posting about this recently?
Isn't that a bug in the current version? I'm sure I remember someone posting about this recently?Hey guys, see below if it helps in any way: