Difference between revisions of "MoveTo - ObjectReference"

Jump to navigation Jump to search
4 bytes added ,  19:01, 11 February 2013
m
→‎Examples: Floatified ints
imported>JustinOther
m (→‎Examples: Cached GetPlayer)
imported>JustinOther
m (→‎Examples: Floatified ints)
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 * Math.Sin(PlayerRef.GetAngleZ()), 120 * Math.Cos(PlayerRef.GetAngleZ()), PlayerRef.GetHeight() - 35)
Portal.MoveTo(PlayerRef, 120.0 * Math.Sin(PlayerRef.GetAngleZ()), 120 * Math.Cos(PlayerRef.GetAngleZ()), PlayerRef.GetHeight() - 35.0)
</source>
</source>


Anonymous user

Navigation menu