AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Detect if func_door is Open (https://forums.alliedmods.net/showthread.php?t=132205)

NzGamers 07-12-2010 22:37

Detect if func_door is Open
 
How do u detect if func_door is opened?

Alucard^ 07-12-2010 23:08

Re: Detect if func_door is Open
 
The only method that i think is detecting when the door is touched and then is open, if is touched another time is closed... but maybe there is a better method.

GXLZPGX 07-12-2010 23:12

Re: Detect if func_door is Open
 
Quote:

Originally Posted by Alucard^ (Post 1237282)
The only method that i think is detecting when the door is touched and then is open, if is touched another time is closed... but maybe there is a better method.

But most doors automatically close. So if you set it to Closed the second time you touched it, it might get fucked up.

jim_yang 07-13-2010 01:11

Re: Detect if func_door is Open
 
maybe try some pdata offset from class CBaseToggle, m_toggle_state or something, have a try and see what happened.

NzGamers 07-13-2010 04:02

Re: Detect if func_door is Open
 
example plz


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

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