- Code: Select all
int i;
for(i=0; i<5; i++)
{
if(getclone("green.i"))
{
DestroyActor("green.i");
}
}
There are at most 5, some may have already been destroyed. This is supposed to go through each, see if it exists, and if it does destroy it.
It's not working properly though. Am I using getclone improperly?
I think I may also be concatenating improperly, it's hard to find information on this in the help files.