# InsertMaterial

Landscape
Material
5.1 OC
bool
int material_index Material to be inserted (see Material()).
int x X insert position or offset
int y Y insert position or offset
int xdir horizontal speed of material pixel to be inserted
int ydir vertical speed of material pixel to be inserted
proplist out_insertpos If a writeable proplist is passed, members x and y are filled with the actual insertion position.
bool query_only If set, the material is not actually inserted. Use this if you are only interested if insertion would be possible and where it would take place.
Inserts a material pixel at the given position and given speed.
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. Use the parameter out_insertpos to find out where material was actually inserted.
Material
Sven2
2001-11