Function MoveToFrontPlayer(ObjectReference akTarget) float angle = Player.GetAngleZ() float xoffset = 100.0 * math.sin(angle) float yoffset = 100.0 * math.cos(angle) akTarget.MoveTo(Player, xoffset, yoffset, abMatchRotation = true) EndFunction