Nainstalovat Steam
přihlásit se
|
jazyk
简体中文 (Zjednodušená čínština)
繁體中文 (Tradiční čínština)
日本語 (Japonština)
한국어 (Korejština)
ไทย (Thajština)
български (Bulharština)
Dansk (Dánština)
Deutsch (Němčina)
English (Angličtina)
Español-España (Evropská španělština)
Español-Latinoamérica (Latin. španělština)
Ελληνικά (Řečtina)
Français (Francouzština)
Italiano (Italština)
Bahasa Indonesia (Indonéština)
Magyar (Maďarština)
Nederlands (Nizozemština)
Norsk (Norština)
Polski (Polština)
Português (Evropská portugalština)
Português-Brasil (Brazilská portugalština)
Română (Rumunština)
Русский (Ruština)
Suomi (Finština)
Svenska (Švédština)
Türkçe (Turečtina)
Tiếng Việt (Vietnamština)
Українська (Ukrajinština)
Nahlásit problém s překladem
Alternatively, you could have two func_door_rotatings, one for each direction. To rotate parent the object to the door, Open it, then ClearParent and Close the door to reset it. The various OnOpen, OnClose, OnFullyOpen, OnFullyClosed outputs will be helpful in setting outputs. OnButtonPressed Lock both buttons, set the parent, set the speed of the door to whatever you want, then open the door 0.01s later (to make sure the inputs fire). OnFullyOpen clear the parent, set the speed to something like 100000 (so it resets very fast), then close the door 0.01s later. OnFullyClosed Unlock the buttons.
The door_rotating is more complicated in this situation. I was half way thinking out on how to do this, but just got frustrated and ended in posting this.
Thanks, this will indeed help me out and won't stress me out.
You can use a math_counter and logic_case to keep track of the position of the object, and fire outputs based on the position. (Post if you want me to explain.) If you want an example for the door rotating version, see ChickenMobile's portalgun stand (only one way but it's pretty similar the opposite direction, you want the one a few posts down that rotates): http://forums.thinkingwithportals.com/post63857.html?#p63857