Raised This Month: $ Target: $400
 0% 

Removing point entities


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 12-30-2009 , 14:20   Removing point entities
Reply With Quote #1

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..
KadiR is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-30-2009 , 14:26   Re: Removing point entities
Reply With Quote #2

Think. You will remove one entity only. You have to loop. You can use the stock remove_entity_name() too.
__________________
Arkshine is offline
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 12-30-2009 , 15:07   Re: Removing point entities
Reply With Quote #3

Quote:
Originally Posted by Arkshine View Post
You can use the stock remove_entity_name() too.
Isn't it better with find_ent_by_class?
KadiR is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-30-2009 , 15:08   Re: Removing point entities
Reply With Quote #4

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; }
__________________
Arkshine is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 12-30-2009 , 15:31   Re: Removing point entities
Reply With Quote #5

http://forums.alliedmods.net/showthread.php?p=657047
maybe this can help or its that what you want
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-30-2009 , 15:45   Re: Removing point entities
Reply With Quote #6

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.
__________________
Arkshine is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 12-30-2009 , 15:47   Re: Removing point entities
Reply With Quote #7

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
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 12-30-2009 , 15:50   Re: Removing point entities
Reply With Quote #8

Are you stupid, One? You can't delete point entities with that plugin. Its just an entity, not solid, without sizes.
__________________
xPaw is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 12-30-2009 , 15:52   Re: Removing point entities
Reply With Quote #9

no you are STUPID 14 years old kiddy!
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 12-30-2009 , 16:02   Re: Removing point entities
Reply With Quote #10

Quote:
Originally Posted by One View Post
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..
KadiR is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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