Removing a n entity

Posted By: Mahdi

Removing a n entity - 04/07/11 14:21

Hi,

I need help.

This is the code:

Code:
action door_key
{
ent_create("flare.tga",my.x,flare_f);
my.event=items_event;
}



I used ent_create to make a flare on the key model so that player can find the key in the level.

But I want to do this:

I want to remove the flare as soon as the key model is removed.

is there anyway?
Posted By: tzw

Re: Removing a n entity - 04/07/11 14:31

use a loop to check the key entity(you can use the flare's skill_xx to store the key handle when you create the flare) whether exsit. if not ,delete the flare. sorry for my english.
Posted By: Mahdi

Re: Removing a n entity - 04/07/11 14:48

yeah, thanks. your english is excellent.

You solved it grin
© 2024 lite-C Forums