This commit is contained in:
parent
dcd717febe
commit
bf395b7d01
8 changed files with 100 additions and 9 deletions
5
eastern flames/scripts/c_deleteunit/c_deleteunit.gml
Normal file
5
eastern flames/scripts/c_deleteunit/c_deleteunit.gml
Normal 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);
|
||||
}
|
12
eastern flames/scripts/c_deleteunit/c_deleteunit.yy
Normal file
12
eastern flames/scripts/c_deleteunit/c_deleteunit.yy
Normal 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",
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue