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

5 lines
171 B
Plaintext

function c_deleteunit(x, y, target) {
array_remove(global.map[x][y].contents, target);
array_remove(global.units[target.alignment], target);
instance_destroy(target);
}