Page 1 of 1

DestroyActor<--RESOLVED,TNK-->Skydereign

PostPosted: Wed Mar 18, 2009 7:33 pm
by equinox
Hi at ALL,

In #1 actor:
Actor *FRECCIA[3];
FRECCIA[1] = CreateActor("FREC_SAVE", "FREC_SAVE", "(none)", "(none)", 0, 0, false);

In #2 actor:
DestroyActor(getclone(FRECCIA[1]->clonename)); Tryng convertfrom *structto *const char

Is there solution for this? Tnk1000.

Re: DestroyActor question.

PostPosted: Wed Mar 18, 2009 8:35 pm
by makslane
Just use:

Code: Select all
DestroyActor(FRECCIA[1]->clonename);

Re: DestroyActor question.

PostPosted: Thu Mar 19, 2009 1:15 pm
by equinox
I have tried in every way ... except this one.

Tnk1000 Mak.

Re: New question: DestroyActor

PostPosted: Fri Apr 03, 2009 10:31 pm
by equinox
Hi at ALL,

in script:

crate EROE1-2-3

for destroy:

DestroyActor(getclone2(EROE.name, 1));
DestroyActor(getCloneIdx(EROE.name, 1));
DestroyActor(getCloneIdx("EROE", 1));

NOT WORK x 3.

Is there solution for this? Tnk1000.

===========================
int t;
for(t = 13; t < 22; t++){
if(cloneindex == t){
DestroyActor("Event Actor");
}
}

in this code ,work...but i prefer...DestroyActor(getCloneIdx("EROE", 1)) or something similar:

int TTT;
for(TTT = 13; TTT < 22; TTT++){
DestroyActor(getCloneIdx("EROE", TTT))
}
}

Re: New question: DestroyActor

PostPosted: Fri Apr 03, 2009 11:25 pm
by skydereign
DestroyActor does not want an Actor *, which is what you are trying to give it. So you would need to take a similar form of that function, or maybe just have it point to the clonename. I'd have to create a similar environment to be sure. So you should try this,
Code: Select all
DestroyActor(getCloneIdx(EROE.name, 1)->clonename);

Re: New question: DestroyActor

PostPosted: Sat Apr 04, 2009 8:34 am
by equinox
Yes !!! This code work !!!

Tnk1000, Skydereign.

Is what I was looking for. Thanks again for your invaluable help. :o))


score++