This commit is contained in:
the me 2022-08-07 14:14:04 -07:00
commit 09ade10207
117 changed files with 2153 additions and 0 deletions

View file

@ -0,0 +1,11 @@
function array_find_index(array, val, repititionof=1) {
var i;
var amountof = 0;
for (i=0; i<array_length(array); i++) {
if array[i] == val {
amountof++;
if amountof >= repititionof return i;
}
}
return -1;
}

View file

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