AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Correct way to kill the entity (https://forums.alliedmods.net/showthread.php?t=168263)

Flipper_SPb 09-26-2011 09:46

Correct way to kill the entity
 
Is there a difference between

PHP Code:

set_pev(indexpev_flagspev(indexpev_flags) | FL_KILLME); 

and

PHP Code:

engfunc(EngFunc_RemoveEntityent

?

hleV 09-26-2011 09:47

Re: Correct way to kill the entity
 
Both ways are correct, however the first one may be the more appropriate in some cases.

ConnorMcLeod 09-26-2011 12:23

Re: Correct way to kill the entity
 
Better to make flag FL_KILLME and to make the entity think, then it could remove some linked entity as for weaponbox ents.

Arkshine 09-26-2011 12:29

Re: Correct way to kill the entity
 
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.


All times are GMT -4. The time now is 19:32.

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