Difference between revisions of "MoveTo - ObjectReference"
m
→Examples
imported>JustinOther |
imported>JustinOther m (→Examples) |
||
Line 31: | Line 31: | ||
Bob.MoveTo(BobsHouseMarker) | Bob.MoveTo(BobsHouseMarker) | ||
</source> | </source> | ||
<source lang="papyrus">; Moves a portal 120 units in front of the player, 35 units under their height | <source lang="papyrus">; Moves a portal 120 units in front of the player, 35 units under their height | ||
Portal.MoveTo(Game.GetPlayer(), 120 * Math.Sin(Game.GetPlayer().GetAngleZ()), 120 * Math.Cos(Game.GetPlayer().GetAngleZ()), Game.GetPlayer()GetHeight() - 35)</source> | Portal.MoveTo(Game.GetPlayer(), 120 * Math.Sin(Game.GetPlayer().GetAngleZ()), 120 * Math.Cos(Game.GetPlayer().GetAngleZ()), Game.GetPlayer()GetHeight() - 35)</source> | ||
<br/> | <br/> |