Logic timescale: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 15: | Line 15: | ||
input SetTimescaleBlendTime(float) : "Set time in seconds to blend between time scales." | input SetTimescaleBlendTime(float) : "Set time in seconds to blend between time scales." | ||
input SetDesiredTimescale(float) : " | input SetDesiredTimescale(float) : "Time scale to blend towards, this is a multiplicative value where 1.0 is normal time, 0.5 is half speed, 2.0 is double speed." | ||
] | ] | ||
</source> | </source> | ||
Line 25: | Line 25: | ||
== Inputs == | == Inputs == | ||
{{IO|SetTimescaleBlendTime|Set time in seconds to blend between time scales.|param=float}} | {{IO|SetTimescaleBlendTime|Set time in seconds to blend between time scales.|param=float}} | ||
{{IO|SetDesiredTimescale| | {{IO|SetDesiredTimescale|Time scale to blend towards, this is a multiplicative value where 1.0 is normal time, 0.5 is half speed, 2.0 is double speed.|param=float}} | ||
{{I Targetname}} | {{I Targetname}} | ||
== Outputs == | == Outputs == | ||
{{O Targetname}} | {{O Targetname}} | ||
== See also == | |||
* [[func_timescale]] (Left 4 Dead 2 only) |
Revision as of 00:01, 11 June 2011
Entity description
An entity that controls the rate at which time passes in the game. Functionally identical to the host_timescale
console command, but works without cheats enabled and supports blending between the time scales.
Useful to create temporary slow motion or fast-forward effects, as seen in the playable trailer for the movie Super 8 in Portal 2.
FGD Code
@PointClass base(Targetname) = logic_timescale : "An entity that controls the rate at which time passes."
[
BlendTime(float) : "Blend Time" : "1.0" : "Time in seconds to blend between time scales."
input SetTimescaleBlendTime(float) : "Set time in seconds to blend between time scales."
input SetDesiredTimescale(float) : "Time scale to blend towards, this is a multiplicative value where 1.0 is normal time, 0.5 is half speed, 2.0 is double speed."
]
Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
Inputs
- SetTimescaleBlendTime <float >
- Set time in seconds to blend between time scales.
- SetDesiredTimescale <float >
- Time scale to blend towards, this is a multiplicative value where 1.0 is normal time, 0.5 is half speed, 2.0 is double speed.
Outputs
See also
- func_timescale (Left 4 Dead 2 only)