Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,310 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Removing a n entity #366818
04/07/11 14:21
04/07/11 14:21
Joined: Aug 2007
Posts: 74
Mahdi Offline OP
Junior Member
Mahdi  Offline OP
Junior Member

Joined: Aug 2007
Posts: 74
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?

Last edited by Mahdi; 04/07/11 14:22.

I don't care!
Re: Removing a n entity [Re: Mahdi] #366821
04/07/11 14:31
04/07/11 14:31
Joined: Jan 2011
Posts: 122
GUILIN , CHINA
tzw Offline
Member
tzw  Offline
Member

Joined: Jan 2011
Posts: 122
GUILIN , CHINA
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.

Last edited by tzw; 04/07/11 14:38.

Full of my eyes are class struggles.....
Re: Removing a n entity [Re: tzw] #366827
04/07/11 14:48
04/07/11 14:48
Joined: Aug 2007
Posts: 74
Mahdi Offline OP
Junior Member
Mahdi  Offline OP
Junior Member

Joined: Aug 2007
Posts: 74
yeah, thanks. your english is excellent.

You solved it grin


I don't care!

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1