Server.Regions.SpawnEntry.RandomSpawnLocation C# (CSharp) Méthode

RandomSpawnLocation() public méthode

public RandomSpawnLocation ( int spawnHeight, bool land, bool water ) : Point3D
spawnHeight int
land bool
water bool
Résultat Point3D
		public Point3D RandomSpawnLocation( int spawnHeight, bool land, bool water )
		{
			return m_Region.RandomSpawnLocation( spawnHeight, land, water, m_Home, m_Range );
		}

Usage Example

		public override object Spawn( SpawnEntry entry )
		{
			Region region = entry.Region;
			Map map = region.Map;

			Point3D loc = entry.RandomSpawnLocation( this.Height, this.Land, this.Water );
			if ( loc == Point3D.Zero )
				return null;

			return Construct( entry, loc, map );
		}
All Usage Examples Of Server.Regions.SpawnEntry::RandomSpawnLocation