2022-08-15 02:35:57 +00:00
|
|
|
function c_inheritunit(x, y, unit_) {
|
|
|
|
var chump = instance_create(-10, -10, o_unit);
|
|
|
|
chump.data = unit_;
|
|
|
|
chump.pos.x = x;
|
|
|
|
chump.pos.y = y;
|
|
|
|
chump.sprite_index = unit_.sprite;
|
2022-08-15 04:06:41 +00:00
|
|
|
array_push(global.map[x][y].contents, chump);
|
2022-08-15 02:35:57 +00:00
|
|
|
return chump;
|
|
|
|
}
|