eastern-flames/eastern flames/scripts/c_moveunit/c_moveunit.gml

7 lines
250 B
Plaintext
Raw Normal View History

2022-08-16 22:28:01 +00:00
function c_moveunit(targetunit, destination) {
array_remove(c_gettile(targetunit.pos.x, targetunit.pos.y).contents, targetunit);
array_push(destination.contents, targetunit);
targetunit.pos.x = destination.x;
targetunit.pos.y = destination.y;
2022-08-16 22:39:22 +00:00
2022-08-16 22:28:01 +00:00
}