AlliedModders

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

Pastout 01-12-2011 19:07

Entity Help
 
I have a func_wall_toggle entity that is tried to a button and when press a button You can go though the wall as if it wasn't there, but heres my problem on round start this entity doesn't return back to solid you have to press the button again is there a way to reset it back to a solid ?

Maybe something like this
PHP Code:

 
public Event_Roundstart()
{
          new 
classname[32]
          
pevtargetpev_classnameclassname31 
          if( 
equalclassname"func_wall_toggle" )
          {
                 
//// NOIDEA :[
          
}



Arkshine 01-12-2011 19:21

Re: Entity Help
 
Call Ham_Use , like : ExecuteHam( Ham_Use, entity, 0, 0, 1, 0.0 ); // 1 = USE_ON

You have to loop through all the func_wall_toggle entities.

Pastout 01-12-2011 19:26

Re: Entity Help
 
You are the best Thanks


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

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