function
get_layer(_x, _y[, _threshold])
Retrieves the topmost splatmap layer at given coordinate.
Name | Type | Description |
---|---|---|
_x | Real |
The x coordinate to retrieve the layer at. |
_y | Real |
The y coordinate to retrieve the layer at. |
_threshold | Real |
The minimum required opacity. Defaults to 0.5. |
Real/Undefined
The topmost splatmap layer at given coordinate. Returns undefined
if the coordinate is outside of the terrain or if no layer was found.
Method BBMOD_Terrain.build_layer_index needs to be called first!
Copyright © 2022, BlueBurn. Built on June 19, 2022 using GMDoc.