Gamestudio Links
Zorro Links
Newest Posts
[MED] Import from FBX (2010) missing!!!
by USER0328. 09/03/26 18:03
Purchase A8 full licence version
by ukgamer. 08/30/26 14:27
ZorroGPT
by TipmyPip. 08/29/26 06:56
Retrieve optimize() variables order (edited)
by NorbertSz. 08/25/26 13:24
Max Number of Strategies in /Strategy folder
by Martin_HH. 08/17/26 07:54
Pause button for evaluation shell?
by AndrewAMD. 08/13/26 17:16
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 08/10/26 12:46
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 2,511 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Bauer097, riggi89, shuhari, KD1990, Student_64151
19231 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 | 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