AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   why this pev_ is absent from includes ? (https://forums.alliedmods.net/showthread.php?t=233091)

avril-lavigne 01-09-2014 16:05

why this pev_ is absent from includes ?
 
Im trying to lock all doors


PHP Code:

       new Door;
       while((
Door find_ent_by_class(Door,"func_door_rotating"))) {
       
pev(Door,pev_no_open,1)
      
// set_entity_visibility( Door, 0 )
       
}
       while((
Door find_ent_by_class(Door,"func_door"))) {
       
pev(Door,pev_no_open1)
     
//  set_entity_visibility( Door, 0 );
       


I cant find any information about pev_no_open, even in inc files.

hornet 01-09-2014 19:19

Re: why this pev_ is absent from includes ?
 
Not sure where you've found this "pev_no_open".

It would depend on what doors your trying to lock. Doors that only require the player to press use on them - no problem. Doors that are targetted by a button - no problem.
However if you have doors that open on touch it will be a problem since you can only properly strip it's use only flag on spawn. Of course you can respawn the door but it's properties will reset.

Provide some more info.

ConnorMcLeod 01-10-2014 01:32

Re: why this pev_ is absent from includes ?
 
Have a look at the top of sma you are browsing, should be some line like :

#define pev_no_open pev_iuser1

avril-lavigne 01-10-2014 04:12

Re: why this pev_ is absent from includes ?
 
dont work, I tried https://forums.alliedmods.net/attach...3&d=1288576773

this plugin. the doors still opening by pushing it

ConnorMcLeod 01-10-2014 13:16

Re: why this pev_ is absent from includes ?
 
About your thread title :

Plugin's author is using custom filed iuser4 defined on line 7:

PHP Code:

#define pev_no_open pev_iuser4 

So, answer is pev_no_open doesn't exist.

If your thread is about something else, please change its title.

avril-lavigne 01-10-2014 19:13

Re: why this pev_ is absent from includes ?
 
thanks i was stupid


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

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