AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Remove func_walls (https://forums.alliedmods.net/showthread.php?t=131541)

Backstabnoob 07-06-2010 07:50

Remove func_walls
 
Hey, I need someone to show me how to remove all the func_wall entities on the map. I'm gonna use this with MonsterMod, so I can remove all monsters in the map instantly (no I don't want to remove the config file). Thanks in advance!

Edit: In this case, if anyone knows the targetname for monsters, can you use it to delete only func_walls that equal to monsters? If not, there's no problem to remove all of them.

Alucard^ 07-06-2010 07:59

Re: Remove func_walls
 
http://forums.alliedmods.net/showthread.php?t=130616

Backstabnoob 07-06-2010 08:21

Re: Remove func_walls
 
I forgot to say I want to remove them ingame, with a command or a function or something.

Backstabnoob 07-06-2010 08:26

Re: Remove func_walls
 
PHP Code:

    new Entity 
    
while((Entity == find_ent_by_class(Entity,"func_wall")) ) { 
        
remove_entity(Entity

But I'd rather use fakemeta, because the plugin I'm gonna use it in is already in FM. Anyone to convert it?

Edit: Lol, sorry for bumping. Just forgot to edit the last post.

Flipper_SPb 07-06-2010 08:42

Re: Remove func_walls
 
Code:

new ent
while((ent = engfunc(EngFunc_FindEntityByString, ent, "classname", "func_wall")))
    engfunc(EngFunc_RemoveEntity, ent)


Backstabnoob 07-06-2010 09:27

Re: Remove func_walls
 
Thanks.


All times are GMT -4. The time now is 07:05.

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