eastern-flames/eastern flames/scripts/c_deleteunit/c_deleteunit.gml

11 lines
318 B
Plaintext
Raw Permalink Normal View History

function c_deleteunit(x, y, target) {
2022-08-23 13:06:02 +00:00
if target.data.name == "Rei'sen" {
textbox_create(txt_win);
c_inheritunit(0, 0, un.bunny, ARMY.THEM);
}
array_remove(global.map[x][y].contents, target);
2022-08-23 13:06:02 +00:00
//global.map[x][y].contents = [];
array_remove(global.units[target.alignment], target);
instance_destroy(target);
2022-08-23 13:06:02 +00:00
}