#How would i Return an empty array?

4 messages · Page 1 of 1 (latest)

slim creek
#

How do i return an empty array as a default to this script when i don't find any instances of _object can i specify a data type for the variable? in java i believe i would get away with int[] array = new int[0]; Because i plan on having a lot of instances running this code i don't want to keep it as a ds_list for longer then being dynamic is necessary.

untold nacelle
#

I'd just create an array with a size of 0

#

var outputArr = array_create(0);

#

You only need to do this once at the start of the script, and just return it