Prototype/Source/Prototype/Private/SwarmSpawnPoint.cpp
/* Get random location in semisphere above spawn point's center.
*
*   @param spawn SwarmSpawnPoint to use.
*   @return Vector in vicinity of the spawn point, restricted by the spawn point's spawnRadius.
*/
Get random location in semisphere above spawn point's center.
Get random location in semisphere above spawn point ' s center .
FVector ASwarmSpawnPoint::GetRandLoc()
{
	float xPos = FMath::FRandRange(-spawnRadius, spawnRadius);
	float yPos = FMath::FRandRange(-spawnRadius, spawnRadius);
	float zPos = 50;
	FVector spawnPos = FVector(xPos, yPos, zPos).GetClampedToSize(0, spawnRadius);
	return spawnPos;
}
FVector ASwarmSpawnPoint :: GetRandLoc ( ) { float xPos = FMath :: FRandRange ( - spawnRadius , spawnRadius ) ; float yPos = FMath :: FRandRange ( - spawnRadius , spawnRadius ) ; float zPos = 50 ; FVector spawnPos = FVector ( xPos , yPos , zPos ) . GetClampedToSize ( 0 , spawnRadius ) ; return spawnPos ; }
Get random location in semisphere above spawn point's center.
Get random location in semisphere above spawn point ' s center .