eastern-flames/eastern flames/scripts/array_contains/array_contains.gml

9 lines
148 B
Plaintext

function array_contains(array, val) {
var i;
for (i=0; i<array_length(array); i++) {
if array[i] = val {
return true;
}
}
return false;
}