the me 2022-08-18 17:14:02 -07:00
parent dcd717febe
commit bf395b7d01
8 changed files with 100 additions and 9 deletions

View file

@ -0,0 +1,5 @@
function c_deleteunit(x, y, target) {
array_remove(global.map[x][y].contents, target);
array_remove(global.units[target.alignment], target);
instance_destroy(target);
}

View file

@ -0,0 +1,12 @@
{
"isDnD": false,
"isCompatibility": false,
"parent": {
"name": "Scripts",
"path": "folders/Scripts.yy",
},
"resourceVersion": "1.0",
"name": "c_deleteunit",
"tags": [],
"resourceType": "GMScript",
}