这篇条目有关 Source引擎。如需详情,点击这里。

Zh/Env effectscript: Difference between revisions

From Valve Developer Community
< Zh
Jump to navigation Jump to search
(-added class hierarchy, cleanup)
m (→‎Inputs: Substituted IO templates)
 
(2 intermediate revisions by one other user not shown)
Line 8: Line 8:


==Inputs==
==Inputs==
{{IO|SetSequence|Sets the script model's sequence.|param=string}}
{{I|SetSequence|Sets the script model's sequence.|param=string}}


==See also==
==See also==
*[[Creating an Effectscript model]]
*{{L|Creating an Effectscript model}}
*[[Particle System Overview]]
*{{L|Particle System Overview}}

Latest revision as of 11:27, 21 April 2025

English (en)中文 (zh)Translate (Translate)
C++ 类层级
CEnvEffectsScript
CBaseAnimating
CBaseEntity
C++ env_effectsscript.cpp

env_effectscript是一个点实体(en),可在所有的 起源 起源 游戏中使用。允许通过脚本文件来编程特殊视觉效果的实体。在d1_trainstation_05半衰期2有2个此实体。

键值

Script Model (model) <模型文件路径(en)>
使用的模型文件。默认是models/Effects/teleporttrail.mdl.
Script File (scriptfile) <字符串(en)>
给此模型使用的脚本文件。默认是 scripts/effects/testeffect.txt.

Inputs

SetSequence <字符串(en)>
Sets the script model's sequence.

See also