eastern-flames/eastern flames/scripts/c_inheritunit/c_inheritunit.gml

8 lines
195 B
Plaintext

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;
return chump;
}