Category: Landscape / Material
Since engine version: 4.0 OC
Tests if a material pixel at the given position can be inserted.
bool CanInsertMaterial(int material_index, int x, int y, proplist out_insertpos);
- Material to test to be inserted (see Material()).
- [opt] X insert position or offset
- [opt] Y insert position or offset
- [opt] If a writeable proplist is passed, members x and y are filled with the position at which the material would be inserted.
If the target position already contains material of the same density as the inserted material, the engine will search upwards for a proper insertion position.
See also: Material