1 | if live_call() |
2 | return global.live_result; |
3 | var random_number = irandom_range(0, (ds_list_size(spawner_list) - 1)) |
4 | var attack_instance = ds_list_find_value(spawner_list, random_number) |
5 | ds_list_delete(spawner_list, random_number) |
6 | instance_create(0, 0, attack_instance) |
7 | if ds_list_empty(spawner_list) |
8 | ds_list_copy(spawner_list, spawner_list_original) |