func_instance

From Valve Developer Community
< Ru
Revision as of 01:36, 9 February 2023 by THE OWL (talk | contribs)
Jump to navigation Jump to search
English (en)Español (es)Русский (ru)中文 (zh)Translate (Translate)
func_instance
Missing entity icon.png
ТипВнутренний Точечный объект мира
ПлатформаSource Source
ДоступностьВо всех играх
 

Template:Entity Данная сущность вставляет образец другого VMF файла в текущий. Вы можете перемещать и вращать ваш образец без поломки чего-либо или без кошмарного редактирования вне сетки.

По умолчанию, образец VMF отображается в Hammer окрашенным в оранжевый, но вы можете отключить это в верхней панели редактора, нажав Instancing > View Instances.

Template:ModernWarning

Template:ModernNote Template:ModernNote

Template:ModernTip

Template:ModernBug Template:ModernBug Template:ModernBug Template:ModernBug Template:ModernBug

Ввод через образец

  1. Задайте Fix Up Name. Для примера будет задано имя "MyInstance"
  2. Определите значение для ввода (input) или выхода (output), которое вы хотите использовать (если он есть).
  3. Отправьте ввод в targetname "fixupname-значение", например MyInstance-Start. Интерфейс Hammer не распознает имя, но не волнуйтесь.

KeyValues

VMF Filename (file) <строка(en)>
Имя VMF файла для использования в образце.
Fix Up Name (propagate_fixup) <строка(en)>
По сути, это название образца. Эта строка будет добавлена ко всем объектам в нём на основе стиля исправления. Если имя не указано, то будет использовано InstanceAutoX или AutoInstanceX, где X - число, которое будет увеличиваться с каждым новым образцом.

Template:Note:ru

Entity Name Fix Up (fixup_style) <варианты выбора>
Как применять Fix Up Name.
  • 0: Prefix (По умолчанию)
  • 1: Postfix
  • 2: None
Replace (replace01) <instance_variable(en)>
Это параметр замены. Любое использование $variable внутри экземпляра будет заменено на value. Заменить <string $variable> <string value>. Пример: $color 255 0 0.

Template:Note:ru


Углы:
Pitch Yaw Roll (Y Z X) (angles) <QAngle(en)>
Ориентация этого объекта в мире. Тангаж (pitch) - поворот по оси Y, рысканье (yaw) - поворот по Z и крен(roll) - поворот по X.

Также смотрите

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.

func_instance_parms - Сущность для управления параметрами в образцах.

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.

func_instance_io_proxy - Энтити, которая в образцах используется в качестве прокси для entity I/O (input/output).

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.

func_instance_origin - Вспомогательная сущность, определяющая центральную точку образца.

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.

L4D2 Level Design/VMF Instances - Учебник о том, как пользоваться этой энтити в Left 4 Dead 2.