GetLookPoint() public method

public GetLookPoint ( float maxDist = 500f ) : Vector3
maxDist float
return Vector3
 public void spawn(String[] args, Player player)
 {
     string entity = args[0];
     int count;
     bool success = int.TryParse(args[1], out count);
     if (!success)
         count = 1;
     Vector3 loc2 = player.Location;
     Vector3 lookpos = player.GetLookPoint();
     float dist = Util.GetVectorsDistance(loc2, lookpos);
     if (dist > 50.0)
     {
         player.Message("Distance is too far from your current location. Please look where you want it to spawn");
     }
     else
     {
         Vector3 loc = lookpos;
         spawnit(entity, loc, count);
     }
 }