Ru/Func movelinear: Difference between revisions
< Ru
Jump to navigation
Jump to search
No edit summary |
(→Входы) |
||
Line 33: | Line 33: | ||
{{IO|SetPosition|Move the brush to a specific position, where 0 is the starting position and 1 is the starting position + (move direction * move distance).|param=string}} | {{IO|SetPosition|Move the brush to a specific position, where 0 is the starting position and 1 is the starting position + (move direction * move distance).|param=string}} | ||
{{IO|SetSpeed|Set the speed and update immediately.|param=float}} | {{IO|SetSpeed|Set the speed and update immediately.|param=float}} | ||
{{I Targetname}} | {{I Targetname:ru}} | ||
{{I Parentname}} | {{I Parentname:ru}} | ||
{{I RenderFields}} | {{I RenderFields:ru}} | ||
== Выходы == | == Выходы == |
Revision as of 01:58, 3 November 2014
Template:Otherlang2 Template:Finishtranslation:ru Template:Base brush
Описание Энтити
It moves linearly along a given distance, in a given direction. Unlike a func_door, it can be positioned anywhere along its axis of movement.


Параметры
- Move Direction (Pitch Yaw Roll) ([todo internal name (i)]) <угол >
- The direction the brushes will move, when told to.
- Start Position ([todo internal name (i)]) <число с плавающей запятой >
- Position of brush when spawned, where 0 is the starting position and 1 is the starting position + (move direction * move distance).
- Speed ([todo internal name (i)]) <целое число >
- The speed that the brush moves, in inches per second.
- Move Distance ([todo internal name (i)]) <число с плавающей запятой >
- The distance from the starting point that the brush should move, in inches.
- Block Damage ([todo internal name (i)]) <число с плавающей запятой >
- The amount of damage to do to any entity that blocks the brushes, per frame.
- Sound played when the brush starts moving. ([todo internal name (i)]) <sound >
- The sound to play when the brush starts moving.
- Sound played when the brush stops moving. ([todo internal name (i)]) <sound >
- The sound to play when the brush stops moving.
- Name (targetname) <объект источник >
- Имя объекта, по которому другие объекты могут ссылаться на этот объект, через Входы/Выходы или другие ключ-параметры (например
parentname
илиtarget
).
Также отображаются на 2D-видах в Hammer и Отчёте об объектах (Entity Report) .См. также: Основные ключ-параметры, входы и выходы доступные для всех объектов
Parentname:
- Parent (parentname) <целевой объект >
- Specifies a movement parent. An entity will maintain its initial offset from its parent. An attachment point can be added to the end of the name, separated by a comma.
Origin:
- Origin (X Y Z) (origin) <origin >
- The position of this entity's center in the world. Rotating entities typically rotate around their origin.
RenderFields:
- Render Mode (rendermode) <байт выбор>
- Устанавливает нестандартный режим отображения этого объекта.
Режимы отображения
- Render FX (renderfx) <байт выбор>
- Various somewhat legacy alpha effects. See render effects.
- Render Amount / Transparency (renderamt) <байт >
- Transparency amount, requires a Render Mode other than Normal. 0 is invisible, 255 is fully visible.
- Render Color (R G B) (rendercolor) <цвет КЗС >
- Color tint.
Флаги
- 8 : Not Solid
Входы
- Open
- Move the brush to the end position (starting position + (move direction * move distance)).
- Close
- Move the brush to the starting position.
- SetPosition <строка >
- Move the brush to a specific position, where 0 is the starting position and 1 is the starting position + (move direction * move distance).
- SetSpeed <число с плавающей запятой >
- Set the speed and update immediately.
Targetname:
- Kill
- Удаляет этот объект из мира.
- KillHierarchy
- Удаляет объект и его потомков из мира.
- AddOutput <строка >
- Определяет ключ-параметр/выход этого объекта. Потенциально представляет большую опасность, используйте с осторожностью.
Формат:<ключ-параметр> <значение>
Формат:<имя выхода> <целевой объект>:<имя входа>:<параметр>:<пауза>:<макс. количество срабатываний, -1 - бесконечно>
- FireUser1 to FireUser4
- Срабатывание выходов
OnUser
; см. Пользовательские вводы и выводы.
- Use Отсутствует в FGD!
- То же, что и при вызове +use игроком; может не всё. Можно вызвать, создав вывод, которому не указан ввод.
Этот ввод не указан в FGD-файле Valve.
- RunScriptFile <скрипт > (Во всех играх начиная с
)
- Выполнить файл игрового скрипта с диска.
SetParent <целевая_энтити-родитель>
- Меняет родителя энтити в её иерархии движения.
- SetParentAttachment <строка>
- Присоединяет текущую энтити к специальной именованной точке её родителя, определяемой параметром <строка>

SetParentAttachmentMaintainOffset <string> (Во всех играх начиная с )
- Заменить энтити, прикреплённую к указанной точки её родителя. Перед отправкой этого входа энтити должны быть дочерними в иерархии. Подаваемый параметр должен быть именем прикрепления. Энтити сохранит свою позицию относительно исходной точки и углов родителя при прикреплении.
- Удаляет родителя из иерархии движения этой энтити.
RenderFields:
- Alpha <целое число >
- Прозрачность спрайта (0 - 255).
- Color <цвет КЗС >
- Цвет спрайта (R G B).
Выходы
- OnFullyOpen
- Fired when the brush reaches the end position (starting position + (move direction * move distance)).
- OnFullyClosed
- Fired when the brush reaches the starting position.
Targetname:
- OnUser1 to OnUser4
- Вызывается в ответ на входы
FireUser
; (см. Пользовательские вводы и выводы).