I'm trying to make a chain lighting attack, by making the "bullet" jumping to the next target (max 3), but I think I'm making in the bad way.
Here is the script in the bullet
//Create
target = ds_list_create();
ds_list_add(bersagli, "obj_enemy");
ds_list_add(bersagli, "obj_enemy")...