AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Remove func_breakable will crash server (https://forums.alliedmods.net/showthread.php?t=82657)

hzqst 12-27-2008 10:26

Remove func_breakable will crash server
 
if I remove a func_breakable, it will crash my server
engfunc(EngFunc_RemoveEntity, entity)
I have tried DLL Think but doesn't work

SchlumPF* 12-27-2008 10:53

Re: Remove func_breakable will crash server
 
paste your code, im remove func_breakables in one of my plugins too but it never crashed the server

danielkza 12-27-2008 11:11

Re: Remove func_breakable will crash server
 
try
Code:

set_pev(ent, pev_flags, pev(ent, pev_flags) | FL_KILLME)

hzqst 12-27-2008 11:20

Re: Remove func_breakable will crash server
 
thx I 've tested with it before you post ...

Dores 12-27-2008 11:23

Re: Remove func_breakable will crash server
 
Quote:

Originally Posted by danielkza (Post 734018)
try
Code:

set_pev(ent, pev_flags, pev(ent, pev_flags) | FL_KILLME)

And if it's not in the Think forward of the entity:
PHP Code:

set_peventpev_flagspeventpev_flags ) | FL_KILLME );
dllfuncDLLFunc_Thinkent ); 

EDIT: Oh, never mind, you've already tested it...

Hawk552 12-28-2008 20:03

Re: Remove func_breakable will crash server
 
You can also make it use itself, although it will come back if it's set to:

Code:
dllfunc(DLLFunc_Use,ent,ent)

It's possible that it may not work like that, so you may have to add:

Code:
dllfunc(DLLFunc_Touch,ent,ent)


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

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