Killing Actors
Posted: Sun Oct 22, 2006 6:05 am
I've got this code that I'd thought would delete all the clones of an actor that still exist:
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.
- 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.