Template:I TalkNPC:ru
Jump to navigation
Jump to search
TalkNPC:
- SpeakResponseConcept <string> (in all games since
)
- Немедленно воспроизводит установленную в параметрах ответа фразу.
BaseNPC:
- SetHealth <integer>
- Set the NPC's health.
- Break
- Smash into pieces. If this is not possible, disappear.
- BecomeRagdoll (in all games since
)
- Remove itself and instantly become a ragdoll with zero force (just go limp). OnDeath, etc. outputs will NOT be fired.
- ForceInteractionWithNPC <строка> <строка> (in all games since
)
- Force the NPC to use a dynamic interaction with another NPC. Syntax is <targetname> <dynamic interaction>.
- ForgetEntity <targetname>
- Clears out the NPC's knowledge of a named entity.
- UpdateEnemyMemory (in all games since
)
- Update (or create) this NPC's memory of of the given entity.
- GagEnable
- GagDisable
- Gagged NPCs won't speak (or moan, caw, etc.) unless made to be a choreographed scene.
- HolsterWeapon (in all games since
)
- UnholsterWeapon (in all games since
)
- Force the NPC to holster or unholster their weapon. Ignored if the NPC is scripting or if the NPC doesn't use weapons.
- HolsterAndDestroyWeapon (in all games since
)
- Same as HolsterWeapon, except the weapon is destroyed once it has been concealed.
- IgnoreDangerSounds <float>
- Ignore danger sounds for the specified number of seconds.
- physdamagescale <float>
- Scales the damage taken when this character is hit by a physics object. 0 means this feature is disabled for backwards compatibility.
- SetBodyGroup <integer>
- HACK: Sets this NPC's body group (from 0–n).
- SetRelationship <string|targetname or classname> <string|disposition> <int|rank>
- Changes whether this NPC likes or dislikes certain others. Used like the ai_relationship entity, with this NPC as the subject.
- Values for
disposition
are:D_HT
: HateD_FR
: FearD_LI
: LikeD_NU
: Neutral
- SetSquad <string>
- Change the name of this NPC's squad. Leaving the parameter blank will remove the NPC from any existing squad.
- StartScripting
- StopScripting
- Enter/exit scripting state, where NPCs ignore a variety of stimulus that would make them break out of their scripts. They ignore danger sounds, ignore +Use, don't idle speak or respond to other NPCs' idle speech, and so on.
- Wake
- Wakes up the NPC if it is sleeping.
Основные:
- Kill
- Удаляет этот объект и все связанные с ним дочерние объекты из мира.
- KillHierarchy
- Функционирует так же, как
Kill
, хотя этот объект и любые связанные с ним объекты уничтожаются в одном кадре, что немного быстрее.
- SetParent <string>
- Двигаться с этим объектом. Смотрите Иерархия объектов.
- SetParentAttachment <string>
- Изменить этот объект, чтобы присоединить его к определённой точке крепления его предка. Объект будет перемещён к предку, чтобы положение его кости bone совпадало с положением крепления. Объекты должны быть соединены перед использованием этого ввода.
- SetParentAttachmentMaintainOffset <string>
- Как и приведённое выше, но без перемещения. Объект сохраняет свою позицию относительно крепления во время получения ввода.
- ClearParent
- Удаляет этот объект из иерархии движений, оставляя его свободным для самостоятельного перемещения.
- AddOutput <string>
- Оценивает ключевое значение/вывод для этого объекта.
Формат:<key> <value>
Формат:<output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire, -1 means infinite>
- FireUser1 to FireUser4
- Срабатывает
OnUser
выходы; Смотрите Пользовательские Входы и выходы.
- Use !FGD
- То же, что игрок, вызывающий +use; может ничего не делать. Может также вызываться путем создания вывода, в котором не указан ввод.
Этот ввод не включен в Valve FGD.
- DispatchEffect <string> !FGD
- Отправляет специальный эффект от позиции объекта. Удалено и полностью заменено системой частиц, так как
.
- AddContext <string>
- Добавляет в список объекта response contexts. Формат
<key>:<value>
.
- RemoveContext <string>
- Remove a context from this entity's list. The name should match the key of an existing context.
- ClearContext <string>
- Removes all contexts from this entity's list.
- RunScriptFile <script> (in all games since
)
- Выполняет VScript скрипт файл с носителя, указывается без расширения. The script contents are merged with the script scope of the receiving entity.
- RunScriptCode <string> (in all games since
)
- Execute a string of VScript source code in the scope of the entity receiving the input. String quotation may be needed when fired via console.
Bug:In
Left 4 Dead 2, the code is executed in the script scope of the entity that fires the output, not the one receiving the input. [todo tested in ?]
- CallScriptFunction <string> (in all games since
) !FGD
- Execute a VScript function in the scope of the receiving entity.
- SetLocalOrigin <coordinates> (in all games since
) !FGD
- Send this entity to a spot in the map. If the entity is parented to something, it will be offset from the parent by this amount.
DamageFilter: