Instalar Steam
iniciar sesión
|
idioma
简体中文 (chino simplificado)
繁體中文 (chino tradicional)
日本語 (japonés)
한국어 (coreano)
ไทย (tailandés)
Български (búlgaro)
Čeština (checo)
Dansk (danés)
Deutsch (alemán)
English (inglés)
Español de Hispanoamérica
Ελληνικά (griego)
Français (francés)
Italiano
Bahasa Indonesia (indonesio)
Magyar (húngaro)
Nederlands (holandés)
Norsk (noruego)
Polski (polaco)
Português (Portugués de Portugal)
Português-Brasil (portugués de Brasil)
Română (rumano)
Русский (ruso)
Suomi (finés)
Svenska (sueco)
Türkçe (turco)
Tiếng Việt (vietnamita)
Українська (ucraniano)
Comunicar un error de traducción
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