Raised This Month: $ Target: $400
 0% 

Detecting if door is open


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Pastout
Senior Member
Join Date: Dec 2010
Location: 1337 Street LeetTown
Old 02-20-2011 , 18:23   Detecting if door is open
Reply With Quote #1

How could i dectect if a door is already open that gets triggered by a button?

I was thinking about getting offsets but not sure what to use. maybe m_toggle_state?
Pastout is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 02-20-2011 , 18:53   Re: Detecting if door is open
Reply With Quote #2

Test it with that offset. Experimentation is key.

Off the top of my head I'd say you could store the coordinates of the door when it is spawned and if you want to see if it's opened just check if it's in the same location as previously. I'm sure there's a more direct method, though.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:45.


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