func_movelinear
func_movelinear
- это объёмный объект мира, доступно для всех игр на движке Source.
func_movelinear
- это объёмный объект мира, доступно для всех игр на движке Source.
Описание Энтити
Она двигается по заданной линии на заданную дистанцию. В отличии от func_door , может изначально располагаться в любом месте по своей оси перемещения.
![Note.png](/w/images/thumb/c/cc/Note.png/10px-Note.png)
![Note.png](/w/images/thumb/c/cc/Note.png/10px-Note.png)
![Warning.png](/w/images/thumb/c/cb/Warning.png/10px-Warning.png)
Параметры
- Move Direction (Pitch Yaw Roll)
(???)
<angle > - Направление, в котором будет двигаться браш.
- Start Position
(???)
<число с плавающей запятой > - Позиция браша при спавне, где 0 это начальная позиция, а 1 это starting position + (move direction * move distance).
- Speed
(???)
<целое число > - Скорость движения браша в дюймах (Хаммер-юнитах?) в секунду.
- Move Distance
(???)
<число с плавающей запятой > - Дистанция, на которую будет двигаться браш, в дюймах (Хаммер-юнитах?).
- Block Damage
(???)
<число с плавающей запятой > - Урон, который будет нанесен всем энтити, которые блокируют движение, за тик.
- Sound played when the brush starts moving.
(???)
<sound > - Звук, проигрываемый при начале движения браша.
- Sound played when the brush stops moving.
(???)
<sound > - Звук, проигрываемый при окончании движения браша.
- Name
(targetname)
<строка > - Название объекта по которому другие объекты могут ссылаться на этот объект.
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)
<варианты выбора> - Set a non-standard rendering mode on this entity.
- Render FX
(renderfx)
<варианты выбора> - Various somewhat legacy alpha effects. See render effects
- Render FX / Transparency (0 - 255)
(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.
- Disable Receiving Shadows
(disablereceiveshadows)
<булева переменная > - Prevent the entity from receiving shadows on itself.
Флаги
- 1 : Not Solid - Включает или отключает колизию энтити.
Входы
Open
- Начать движение браша в конечную позицию (starting position + (move direction * move distance)).
Close
- Начать движение браша в начальную позицию.
SetPosition
<строка >- Сдвинуть браш в позицию, где 0 это начальная позиция и 1 это starting position + (move direction * move distance).
SetSpeed
<число с плавающей запятой >- Установить скорость браша (Применяется мгновенно).
Kill
- Удаляет этот энтити из мира.
KillHierarchy
- Удаляет энтити и его потомков из мира.
AddOutput
<строка >- Определяет keyvalue/output в этом энтити. Потенциально представляет большую опасность, используйте с осторожностью.
Формат:<key> <value>
Формат:<output name> <targetname>:<inputname>:<parameter>:<delay>:<макс. количество активаций, -1 - бесконечно>
FireUser1
toFireUser4
- Запуск выходов
OnUser
; см. Пользовательские вводы и выводы.
Use
Отсутствует в FGD!- То же, что и при вызове +use игроком; может не всё. Можно вызвать, создав вывод, которому не указан ввод.
Этот ввод не входит в Valve-файлы FGD.
RunScriptFile
<скрипт > (Во всех играх начиная с)
- Выполнить файл игрового скрипта с диска.
RunScriptCode
<строка > (Во всех играх начиная с)
- Выполнить строку исходного кода скрипта.
Предупреждение:Никогда не передавайте строковые параметры функции скрипта с помощью этого входа. Это повредит структуру VMF из-за вложения кавычек, которые потребуется удалять вручную в текстовом редакторе.
Parentname:
SetParent
<строка >- Move with this entity. See Entity Hierarchy (parenting).
SetParentAttachment
<строка >- Change this entity to attach to a specific attachment point on its parent. The entity will teleport so that the position of its root bone matches that of the attachment. Entities must be parented before being sent this input.
SetParentAttachmentMaintainOffset
<строка >- As above, but without teleporting. The entity retains its position relative to the attachment at the time of the input being received.
ClearParent
- Removes this entity from the the movement hierarchy, leaving it free to move independently.
RenderFields:
Alpha
<целое число 0–255>- Sets the entity's transparency to a number from 0 (invisible) to 255 (fully visible). Requires the entity to have its
rendermode
set to a number other than0
.
Color
<цвет КЗС >- Sets an RGB color for the entity.
Выходы
OnFullyOpen
- Вызывается, когда браш достигает конечной позиции (starting position + (move direction * move distance)).
OnFullyClosed
- Вызывается, когда браш достигает начальной позиции.
Targetname:
OnUser1
toOnUser4
- These outputs each fire in response to the firing of the like-numbered
FireUser1
toFireUser4
Input; see User Inputs and Outputs.