...
Important:This page uses the {{lang}} translation
template, which is deprecated.
It should be replaced by the
{{MultiPage}} (or {{Autolang}})
template if possible.
For more information, see this page.
本教程将详细介绍仅在激活两个(或更多)按钮时才能打开门的基础知识。
门,按钮和触发器
按照教程地面按钮和实验室门创建门和两个按钮。
设置开门按钮
创建一个math_counter实体,然后将其放在门附近。设置以下属性:
Property Name |
Value
|
Name |
door_counter
|
Maximum Legal Value |
2
|
对于Maximum Legal Value
key value,输入任意一个你想要的数字。
现在转到“输出”并设置以下输出:
|
My Output |
Target Entity |
Target Input |
Parameter |
Delay |
Only Once
|
|
OnHitMax |
door_left |
Open |
<none> |
0.00 |
No
|
|
OnHitMax |
door_right |
Open |
<none> |
0.00 |
No
|
现在转到每个画笔实体并设置以下输出:
|
My Output |
Target Entity |
Target Input |
Parameter |
Delay |
Only Once
|
|
OnOpen |
door_counter |
Add |
1 |
0.00 |
No
|
|
OnClose |
door_counter |
Subtract |
1 |
0.00 |
No
|
|
OnClose |
door_left |
Close |
<none> |
0.00 |
No
|
|
OnClose |
door_right |
Close |
<none> |
0.00 |
No
|
参考