Advertisement
tjackisen

VB.NET findPlayerPosition

Jul 25th, 2013
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.30 KB | None | 0 0
  1. Private Function findPlayerPosition(playerName As String) As Vector3
  2.     For Each p As var In Game.PlayerList
  3.         If p.Name = playerName Then
  4.             Return p.Character.Position
  5.         End If
  6.     Next
  7.  
  8.     Return New Vector3()
  9. End Function
  10.  
  11.  
  12. EXAMPLE:             Vector3 playerPosition = findPlayerPosition("tjackisen");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement