Raised This Month: $ Target: $400
 0% 

Correct way to kill the entity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Flipper_SPb
Senior Member
Join Date: Jun 2009
Location: Worldspawn
Old 09-26-2011 , 09:46   Correct way to kill the entity
Reply With Quote #1

Is there a difference between

PHP Code:
set_pev(indexpev_flagspev(indexpev_flags) | FL_KILLME); 
and

PHP Code:
engfunc(EngFunc_RemoveEntityent
?
__________________
Полный похуизм.
Flipper_SPb is offline
Send a message via ICQ to Flipper_SPb
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 09-26-2011 , 09:47   Re: Correct way to kill the entity
Reply With Quote #2

Both ways are correct, however the first one may be the more appropriate in some cases.
__________________
hleV is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-26-2011 , 12:23   Re: Correct way to kill the entity
Reply With Quote #3

Better to make flag FL_KILLME and to make the entity think, then it could remove some linked entity as for weaponbox ents.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-26-2011 , 12:29   Re: Correct way to kill the entity
Reply With Quote #4

All entities are not like weaponbox and it may more appropriate to not use FL_KILLME sometimes. All is depending what you want to do.
__________________
Arkshine 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 19:32.


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