Ru/Creating multiple buttons for one door p2: Difference between revisions

From Valve Developer Community
< Ru
Jump to navigation Jump to search
m (Added categories to the page)
m (Изменено название math_counter с "door2" на "counter". Добавленна ссылка на энтити math_counter)
Line 7: Line 7:
2. Создайте дверь (назовите door1)
2. Создайте дверь (назовите door1)


3. Создайте math_counter со следующими настройками
3. Создайте {{en}}[[math_counter]] со следующими настройками


::{| class=standard-table
::{| class=standard-table
!  Имя свойства || Значение
!  Имя свойства || Значение
|-
|-
| name || door2
| Name || counter
|-
|-
| Maximum legal value || 2
| Maximum legal value || 2
Line 22: Line 22:
!  || My Output || Target Entity || Target Input || Parameter || Delay || Only Once
!  || My Output || Target Entity || Target Input || Parameter || Delay || Only Once
|-
|-
| [[Image:Io11.png]] ||OnPressed || door2 || Add || 1 || 0.00 || No
| [[Image:Io11.png]] ||OnPressed || counter || Add || 1 || 0.00 || No
|-
|-
| [[Image:Io11.png]] ||OnUnPressed || door2 || Subtract || 1 || 0.00 || No
| [[Image:Io11.png]] ||OnUnPressed || counter || Subtract || 1 || 0.00 || No
|}
|}


Line 38: Line 38:
| [[Image:Io11.png]] ||OnHitMin || door1 || close ||  || 0.00 || No
| [[Image:Io11.png]] ||OnHitMin || door1 || close ||  || 0.00 || No
|-
|-
| [[Image:Io11.png]] ||OnHitMax || door2 || SetHitMin || 1 || 0.00 || No
| [[Image:Io11.png]] ||OnHitMax || counter || SetHitMin || 1 || 0.00 || No
|-
|-
| [[Image:Io11.png]] ||OnHitMin || door2 || SetHitMin || 0 || 0.00 || No
| [[Image:Io11.png]] ||OnHitMin || counter || SetHitMin || 0 || 0.00 || No
|}
|}



Revision as of 09:08, 27 December 2020

Template:Otherlang2

Связка двух кнопок

1. Создайте две кнопки (любые - prop_floor_button к примеру)

2. Создайте дверь (назовите door1)

3. Создайте

Warning icon.png
This article has been marked as a candidate for speedy deletion for the following reason:
Use {{Flag|en}} instead.
If you object to this decision, then please discuss why here (If you make a discussion section also create this redirect page). If this page doesn't meet the criteria for speedy deletion, then please remove this notice, but do not remove it from pages that you have created yourself
Administrators / Moderators - Remember to check if anything links here and the page history before deleting.

math_counter со следующими настройками

Имя свойства Значение
Name counter
Maximum legal value 2

4. Подключаем кнопки к math_counter

My Output Target Entity Target Input Parameter Delay Only Once
Io11.png OnPressed counter Add 1 0.00 No
Io11.png OnUnPressed counter Subtract 1 0.00 No

(повторите 4 пункт со второй кнопкой)

5. Подключаем math_counter к двери

My Output Target Entity Target Input Parameter Delay Only Once
Io11.png OnHitMax door1 open 0.00 No
Io11.png OnHitMin door1 close 0.00 No
Io11.png OnHitMax counter SetHitMin 1 0.00 No
Io11.png OnHitMin counter SetHitMin 0 0.00 No


Template:Tip:ru

Дополнение

  • статью написал ゲームマスター
  • дополнил GreMirid
  • Удачного обучения :D