# Top-Right Of Region Bounds

Grammar — Top-right of r bounds
FlagsNative | Function

Returns the maximum bounds of a region. For a rectangle region, this is the top-right corner of the rectangle. In the general case, this is a point comprising the right-most X coordinate and the top-most Y coordinate of the region.

# Arguments

  • region — Region

Returns — point

native point RegionGetBoundsMax(region r);

Category: Region / Modification

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L2523
RegionGetBoundsMax(lv_boundary)
// L2561
RegionGetBoundsMax(lv_bounds)
// L3134
RegionGetBoundsMax(lv_bounds)
// L2798
RegionGetBoundsMax(RegionFromId(14))
// L2809
RegionGetBoundsMax(RegionFromId(14))
// L2820
RegionGetBoundsMax(RegionFromId(14))
// L35
RegionGetBoundsMax(lp_circle)
// L2523
RegionGetBoundsMax(lv_boundary)
// L2561
RegionGetBoundsMax(lv_bounds)
// L3134
RegionGetBoundsMax(lv_bounds)
// L2798
RegionGetBoundsMax(RegionFromId(14))
// L2809
RegionGetBoundsMax(RegionFromId(14))
// L2820
RegionGetBoundsMax(RegionFromId(14))
// L35
RegionGetBoundsMax(lp_circle)
// L469
RegionGetBoundsMax(RegionPlayableMap())
// L470
RegionGetBoundsMax(RegionPlayableMap())
// L469
RegionGetBoundsMax(RegionPlayableMap())
// L470
RegionGetBoundsMax(RegionPlayableMap())
// L583
RegionGetBoundsMax(RegionPlayableMap())
// L584
RegionGetBoundsMax(RegionPlayableMap())
// L497
RegionGetBoundsMax(RegionFromId(1))
// L583
RegionGetBoundsMax(RegionPlayableMap())
// L584
RegionGetBoundsMax(RegionPlayableMap())
// L497
RegionGetBoundsMax(RegionFromId(1))

# mods/core.sc2mod

NativeLib.galaxy

// L4171
RegionGetBoundsMax(lp_region)
// L4177
RegionGetBoundsMax(lp_region)
// L3470
RegionGetBoundsMax(lp_region)
// L3476
RegionGetBoundsMax(lp_region)

# mods/heroes.stormmod

MapScript.galaxy

// L616
RegionGetBoundsMax(lp_area)
// L618
RegionGetBoundsMax(lp_area)
// L616
RegionGetBoundsMax(lp_area)
// L618
RegionGetBoundsMax(lp_area)

# mods/heroesdata.stormmod

GameDataHelperLib.galaxy

// L260
RegionGetBoundsMax(RegionPlayableMap())
// L261
RegionGetBoundsMax(RegionPlayableMap())
// L265
RegionGetBoundsMax(RegionPlayableMap())
// L272
RegionGetBoundsMax(RegionPlayableMap())
// L287
RegionGetBoundsMax(RegionPlayableMap())
// L298
RegionGetBoundsMax(RegionPlayableMap())
// L338
RegionGetBoundsMax(RegionPlayableMap())
// L343
RegionGetBoundsMax(RegionPlayableMap())

# mods/heroesdata.stormmod

GameLib.galaxy

// L1148
RegionGetBoundsMax(lp_bound)
// L1148
RegionGetBoundsMax(libGame_gv_cameraBound_Regions[lv_itIndex])
// L1148
RegionGetBoundsMax(lp_bound)
// L1148
RegionGetBoundsMax(libGame_gv_cameraBound_Regions[lv_itIndex])

# mods/heroesdata.stormmod

StartingExperienceLib.galaxy

// L1017
RegionGetBoundsMax(RegionPlayableMap())
// L1050
RegionGetBoundsMax(RegionPlayableMap())

# mods/heroesdata.stormmod

SupportLib.galaxy

// L626
RegionGetBoundsMax(RegionEntireMap())
// L627
RegionGetBoundsMax(RegionEntireMap())

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L5228
RegionGetBoundsMax(RegionPlayableMap())
// L5229
RegionGetBoundsMax(RegionPlayableMap())
// L5230
RegionGetBoundsMax(RegionPlayableMap())
// L5231
RegionGetBoundsMax(RegionPlayableMap())
// L5235
RegionGetBoundsMax(RegionPlayableMap())
// L5243
RegionGetBoundsMax(RegionPlayableMap())
// L5261
RegionGetBoundsMax(RegionPlayableMap())
// L5263
RegionGetBoundsMax(RegionPlayableMap())
// L5275
RegionGetBoundsMax(RegionPlayableMap())
// L5324
RegionGetBoundsMax(RegionPlayableMap())