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

From Valve Developer Community
< Ru
Jump to navigation Jump to search
m (Изменено название math_counter с "door2" на "counter". Добавленна ссылка на энтити math_counter)
mNo edit summary
Line 5: Line 5:
1. Создайте две кнопки (любые - prop_floor_button к примеру)
1. Создайте две кнопки (любые - prop_floor_button к примеру)


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


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

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