Difference between revisions of "MoveTo - ObjectReference"

Jump to navigation Jump to search
2 bytes added ,  19:02, 11 February 2013
m
→‎Examples: Gah! Missed one
imported>JustinOther
m (→‎Examples: Floatified ints)
imported>JustinOther
m (→‎Examples: Gah! Missed one)
Line 40: Line 40:
; 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()
Actor PlayerRef = Game.GetPlayer()
Portal.MoveTo(PlayerRef, 120.0 * Math.Sin(PlayerRef.GetAngleZ()), 120 * Math.Cos(PlayerRef.GetAngleZ()), PlayerRef.GetHeight() - 35.0)
Portal.MoveTo(PlayerRef, 120.0 * Math.Sin(PlayerRef.GetAngleZ()), 120.0 * Math.Cos(PlayerRef.GetAngleZ()), PlayerRef.GetHeight() - 35.0)
</source>
</source>


Anonymous user

Navigation menu