func_movelinear
< Ru
Jump to navigation
Jump to search
func_movelinear
- это брашевая энтити , доступно для всех игр на движке Source.
Описание Энтити
Она двигается по заданной линии на заданную дистанцию. В отличии от func_door , может изначально располагаться в любом месте по своей оси перемещения.



Параметры
- Move Direction (Pitch Yaw Roll) ([todo internal name (i)]) <angle >
- Направление, в котором будет двигаться браш.
- Start Position ([todo internal name (i)]) <число с плавающей запятой >
- Позиция браша при спавне, где 0 это начальная позиция, а 1 это starting position + (move direction * move distance).
- Speed ([todo internal name (i)]) <целое число >
- Скорость движения браша в дюймах (Хаммер-юнитах?) в секунду.
- Move Distance ([todo internal name (i)]) <число с плавающей запятой >
- Дистанция, на которую будет двигаться браш, в дюймах (Хаммер-юнитах?).
- Block Damage ([todo internal name (i)]) <число с плавающей запятой >
- Урон, который будет нанесен всем энтити, которые блокируют движение, за тик.
- Sound played when the brush starts moving. ([todo internal name (i)]) <sound >
- Звук, проигрываемый при начале движения браша.
- Sound played when the brush stops moving. ([todo internal name (i)]) <sound >
- Звук, проигрываемый при окончании движения браша.
См. также: Generic Keyvalues, Inputs and Outputs available to all entities
- 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 Modes Expand
- Render FX (renderfx) <варианты выбора>
- Various somewhat legacy alpha effects. See render effects
- Render Amount / Transparency (renderamt) <byte >
- 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 <число с плавающей запятой >
- Установить скорость браша (Применяется мгновенно).
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
- Вызывается, когда браш достигает начальной позиции.