function c_inheritunit(x, y, unit_, alignment) { var chump = instance_create(-10, -10, o_unit); chump.data = unit_; chump.pos.x = x; chump.pos.y = y; chump.sprite_index = unit_.idle; array_push(global.map[x][y].contents, chump); array_push(global.units[alignment], chump); chump.alignment = alignment; return chump; }