getting an actor to be destroyed upon collsion

Non-platform specific questions.

getting an actor to be destroyed upon collsion

Postby yourownskills » Sun Apr 08, 2012 7:10 pm

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;


}
yourownskills
 
Posts: 40
Joined: Thu Mar 22, 2012 5:02 pm
Score: 1 Give a positive score

Re: getting an actor to be destroyed upon collsion

Postby skydereign » Sun Apr 08, 2012 7:20 pm

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


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron