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

9 lines
148 B
Plaintext
Raw Normal View History

2022-08-07 21:14:04 +00:00
function array_contains(array, val) {
var i;
for (i=0; i<array_length(array); i++) {
if array[i] = val {
return true;
}
}
return false;
}