function create_cube() // Erstellt einen Würfel
{
while (mouse_left == 1) {wait(1);} // Wartet bis Maustatse losgelassen wird
while (1)
{
if (mouse_left == 1)
{
create_pos.x = mouse_pos.x;
create_pos.y = mouse_pos.y;
create_pos.z = camera.z;
vec_for_screen (create_pos, camera);
ent_create ("hauptgebäude.wmb", create_pos, NULL);
}
wait(1);
}
}