Difference between revisions of "Talk:MoveTo"
no edit summary
imported>GuidoBot |
imported>Scruggs |
||
Line 52: | Line 52: | ||
: :shrug: It's confirmed as far as I use it with several types of objects in my mods, including statics. I've never seen a crash with enable and disable called in the same frame. The purpose of the final [[SetPos]] is to update the collision and world art when the object is moved from a different cell. [[User:Scruggs|Scruggs]] 19:02, 29 November 2006 (EST) | : :shrug: It's confirmed as far as I use it with several types of objects in my mods, including statics. I've never seen a crash with enable and disable called in the same frame. The purpose of the final [[SetPos]] is to update the collision and world art when the object is moved from a different cell. [[User:Scruggs|Scruggs]] 19:02, 29 November 2006 (EST) | ||
::Does this mean you can move/teleport buildings and containers? Does it make a difference if these are persistant or remote from the player's current location? I dont mean to push here but I'd given up trying to use MoveTo on certain types of objects but I would be willing to try again if you think this code solves the issues? On the other hand, I've not had many of the problems using MoveTo with actors and other stuff that others have reported on the forums. As far as crashes go with enable/disable, I think it depends on the state of the object when certain commands are done. On several occassions I've had to enable one frame, do something, then disable on the next frame to avoid crashes. [[User:GuidoBot|GuidoBot]] 19:46, 29 November 2006 (EST) | ::Does this mean you can move/teleport buildings and containers? Does it make a difference if these are persistant or remote from the player's current location? I dont mean to push here but I'd given up trying to use MoveTo on certain types of objects but I would be willing to try again if you think this code solves the issues? On the other hand, I've not had many of the problems using MoveTo with actors and other stuff that others have reported on the forums. As far as crashes go with enable/disable, I think it depends on the state of the object when certain commands are done. On several occassions I've had to enable one frame, do something, then disable on the next frame to avoid crashes. [[User:GuidoBot|GuidoBot]] 19:46, 29 November 2006 (EST) | ||
:::Well, if you're moving something from a remote cell, it has to be a persistent reference of course. That goes for calling any function on a remote object, not moveTo specifically. [[User:Scruggs|Scruggs]] 20:07, 29 November 2006 (EST) |