DestroyActor<--RESOLVED,TNK-->Skydereign

Non-platform specific questions.

DestroyActor<--RESOLVED,TNK-->Skydereign

Postby equinox » Wed Mar 18, 2009 7:33 pm

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.
Last edited by equinox on Sat Apr 04, 2009 8:41 am, edited 3 times in total.
User avatar
equinox
 
Posts: 118
Joined: Tue Jan 29, 2008 3:38 pm
Score: 0 Give a positive score

Re: DestroyActor question.

Postby makslane » Wed Mar 18, 2009 8:35 pm

Just use:

Code: Select all
DestroyActor(FRECCIA[1]->clonename);
Game Editor is an open source game creator software that's wants to pay it's developers to keep evolving.
If you like Game Editor, make a review!
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Re: DestroyActor question.

Postby equinox » Thu Mar 19, 2009 1:15 pm

I have tried in every way ... except this one.

Tnk1000 Mak.
User avatar
equinox
 
Posts: 118
Joined: Tue Jan 29, 2008 3:38 pm
Score: 0 Give a positive score

Re: New question: DestroyActor

Postby equinox » Fri Apr 03, 2009 10:31 pm

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))
}
}
User avatar
equinox
 
Posts: 118
Joined: Tue Jan 29, 2008 3:38 pm
Score: 0 Give a positive score

Re: New question: DestroyActor

Postby skydereign » Fri Apr 03, 2009 11:25 pm

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);
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: New question: DestroyActor

Postby equinox » Sat Apr 04, 2009 8:34 am

Yes !!! This code work !!!

Tnk1000, Skydereign.

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


score++
User avatar
equinox
 
Posts: 118
Joined: Tue Jan 29, 2008 3:38 pm
Score: 0 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron