Talk:MoveToMarker
Jump to navigation
Jump to search
Dragoon Wraith TALK 19:52, 5 June 2006 (EDT): I don't understand this function - how does it work? What is meant by "reference ID"?
- MoveToMarker is essentially a MoveTo, except designed for XMarkers. X Markers are special markers placed in the world to identify a specific location. For example, X markers can be used for Randomly teleporting doors, showing where the player will be, and which direction he/she will be facing (optional). It is often used to indicate where NPCs should travel to, or where they'll be transported to. See FGD08Script for some good examples of MoveTo and MoveToMarker. At the moment, I am still researching this function, but that is essentially what it does.
- Double click on any object. At the top of the window, there's a box entitled "Reference Editor ID". This is what the article means by "Reference ID". You can use this to distinguish between several different identical objects, such as the 900+ XMarkers in the game. TheImperialDragon 20:07, 5 June 2006 (EDT)
- Dragoon Wraith TALK 20:10, 5 June 2006 (EDT): OK, that clears some things up, thanks. Also, good edit to the article.
Well, actually, I wrote the article in a hurry about an hour ago, so the mistake was my own. Sorry about the confusion. TheImperialDragon 20:18, 5 June 2006 (EDT)
- But you can use MoveTo to achieve the same. Are you sure that MoveToMarker isn't just another name for MoveTo? There are many functions with multiple names. --JustTim 03:07, 6 June 2006 (EDT)
- I just checked in the oblivion.exe and both functions are mentioned next to each other like all alias functions. It it very likely (but not 100% sure) that both do the same. --JustTim 04:53, 6 June 2006 (EDT)
- I believe that MoveToMarker may do the same as MoveTo, except that MoveToMarker rotates the moved object to face whichever direction the marker is facing. Look at FGD08Script, it seems that MoveToMarker is used so that the player is facing the village. MoveTo does not seem to be able to set a rotation angle. Maybe that is the difference. TheImperialDragon 08:26, 6 June 2006 (EDT)
- MoveTo also sets the rotation angle. I'm sure about this since i use it in some teleportation scripts. --JustTim 09:46, 6 June 2006 (EDT)
- Well, who knows? Maybe they are identical, maybe not, but since there isn't any difference that we can't point out immediately, we should just leave things the way they are until somebody finds out the difference (if there is one). Anyway, I figured that the function should at least be documented.
Ok... can anyone tell me how to get the player's ID? A_Flyboy
- Use player. i.e.: player.moveTo someMarker, set quantity to player.getItemCount someItem. Scruggs 22:05, 20 October 2006
(EDT)
- ummm i guess i should have specifyed. i want an npc to teleport to me. how do I do that? A_Flyboy
- Dragoon Wraith TALK 19:10, 21 October 2006 (EDT): Just the opposite: NPC.MoveTo player
- The player's not a marker, so you shouldn't use MoveToMarker.
- what should i use? By the way, it wont accept that for some reason.A_Flyboy
- Dragoon Wraith TALK 02:53, 23 October 2006 (EDT): Well, then something else is wrong, because that's how it would be done (and I've used that myself many times).
Just my $0.02. I've not found anything that MoveToMarker does that's different from a regular MoveTo. Haven't tried it with Door/direction markers yet though (?) GuidoBot 20:07, 24 October 2006 (EDT)