Page 1 of 1

getting an actor to be destroyed upon collsion

PostPosted: Sun Apr 08, 2012 7:10 pm
by yourownskills
I have a collision fill region actor that spawns these worms when the player contacts it....when i destroy the momma bird I want the collision fill actor to be destroyed with it so it no longer creates the worm actors.....I cant figure it out...

this is the Bullet Collsion script... so when the bullet his the momma bird the hp changes .....im trying to get the collision fill region to be destroyed at case 2

switch (MommaHP)

case 0: //full health
{
ChangeAnimation("MommaBirdHp", "hearts2", FORWARD);
MommaHP=1;
break;


case 1: //2 hearts
ChangeAnimation("MommaBirdHp", "hearts1", FORWARD);
MommaHP=2;
break;

case 2: // 0 hearts
ChangeAnimation("MommaBirdHp", "hearts0", FORWARD);
\
DestroyActor("wormBullet");
DestroyActor("mommaBirdOne");
DestroyActor("WormTwo");
DestroyActor("wormpukeTwo");
CollisionState("wormpukeTwo", DISABLE);
MommaHP=3;
break;


}

Re: getting an actor to be destroyed upon collsion

PostPosted: Sun Apr 08, 2012 7:20 pm
by skydereign
If you are going to post the questions on the forums, then please don't pm me the question. I am more inclined to answer via pm, but since you posted here even if I do reply to your pm, it still appears as though no one answered your question. And to reanswer the question, destroy the event actor. Also, why do you disable the collision state of an actor you already destroyed?