AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Removing point entities (https://forums.alliedmods.net/showthread.php?t=113836)

KadiR 12-30-2009 14:20

Removing point entities
 
I tryed to remove all env_explosions in a map with this:

PHP Code:

    remove_entityfind_ent_by_class( -1"env_explosion") ); 

didn't work..

Arkshine 12-30-2009 14:26

Re: Removing point entities
 
Think. You will remove one entity only. You have to loop. You can use the stock remove_entity_name() too.

KadiR 12-30-2009 15:07

Re: Removing point entities
 
Quote:

Originally Posted by Arkshine (Post 1036743)
You can use the stock remove_entity_name() too.

Isn't it better with find_ent_by_class?:|

Arkshine 12-30-2009 15:08

Re: Removing point entities
 
It's an engine stock :

Code:
/* Remove entity by name */ stock remove_entity_name(const eName[]) {     new iEntity = find_ent_by_class(-1, eName);     while (iEntity > 0)     {         remove_entity(iEntity);         iEntity = find_ent_by_class(-1, eName);     }     return 1; }

One 12-30-2009 15:31

Re: Removing point entities
 
http://forums.alliedmods.net/showthread.php?p=657047
maybe this can help or its that what you want

Arkshine 12-30-2009 15:45

Re: Removing point entities
 
Why you give a full plugin when it's the scripting section and he wants just to know how to remove all these entities... -_- Also the answer is already given.

One 12-30-2009 15:47

Re: Removing point entities
 
maybe i meant that he can search too because in this FULL PLUGIN , are already many things which can help.
& because i know what he want to do and i think he can do it with this plugin much better as write a new plugin for this.

you dont have to attack me because i posted a plugin link which can help oO

xPaw 12-30-2009 15:50

Re: Removing point entities
 
Are you stupid, One? You can't delete point entities with that plugin. Its just an entity, not solid, without sizes.

One 12-30-2009 15:52

Re: Removing point entities
 
no you are STUPID 14 years old kiddy!

KadiR 12-30-2009 16:02

Re: Removing point entities
 
Quote:

Originally Posted by One (Post 1036830)
http://forums.alliedmods.net/showthread.php?p=657047
maybe this can help or its that what you want

That one can't remove point entities..


All times are GMT -4. The time now is 04:09.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.