View Single Post
Re: Detecting when func_door_rotating entities open
Old
  (#2)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: Detecting when func_door_rotating entities open - 05-05-2004

I've been searching this for a while too, but there's no miracle solution here AFAIK.

You can check pEdict->v.nextthink. If it is greater than zero, the door is either opening, either in open state and about to close, either closing. If it is equal or smaller to zero, the door is closed.

Else, if you know the location of the door, just do a TraceLine through it. If the TraceLine passes, the door is open, if the TraceLine is blocked, then it is closed.



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote