Difference between revisions of "MoveTo - ObjectReference"
Jump to navigation
Jump to search
m
→Examples: Cached GetPlayer
imported>Chesko (Added note about actors and furniture.) |
imported>JustinOther m (→Examples: Cached GetPlayer) |
||
Line 39: | Line 39: | ||
<source lang="papyrus"> | <source lang="papyrus"> | ||
; Moves a portal 120 units in front of the player, 35 units under their height | ; Moves a portal 120 units in front of the player, 35 units under their height | ||
Actor PlayerRef = Game.GetPlayer() | |||
Portal.MoveTo(PlayerRef, 120 * Math.Sin(PlayerRef.GetAngleZ()), 120 * Math.Cos(PlayerRef.GetAngleZ()), PlayerRef.GetHeight() - 35) | |||
</source> | </source> | ||