placeUnitNearTile
fun placeUnitNearTile(position: Vector2, unitName: String, civInfo: CivilizationInfo): MapUnit?
Content copied to clipboard
Tries to place the unitName into the TileInfo closest to the given position
Return
created MapUnit or null if no suitable location was found
Parameters
position
where to try to place the unit (or close - max 10 tiles distance)
unitName
name of the BaseUnit to create and place
civInfo
civilization to assign unit to
Sources
jvm source
Link copied to clipboard