Logic timescale: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with '{{Ent not in fgd}} {{portal2 point|logic_timescale}} == Entity description == An entity that controls the rate at which time passes in the game. Functionally identical to the …')
 
mNo edit summary
Line 7: Line 7:


Useful to create temporary slow motion or fast-forward effects, as seen in the playable trailer for the movie ''Super 8'' in Portal 2.
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 ==
<source lang="text">
@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) : "Set new time scale."
]
</source>


== Keyvalues ==
== Keyvalues ==
Line 19: Line 30:
== Outputs ==
== Outputs ==
{{O Targetname}}
{{O Targetname}}
== FGD Code ==
<source lang="text">
@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) : "Set new time scale."
]
</source>

Revision as of 05:07, 10 June 2011

Icon-NotInFGD.png
This entity is not in the FGD by default.
See below for instructions on making it available.

Template:Portal2 point

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) : "Set new time scale."
]

Keyvalues

Blend Time ([todo internal name (i)]) <float>
Time in seconds to blend between time scales.
Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Inputs

SetTimescaleBlendTime <floatRedirectInput/float>
Set time in seconds to blend between time scales.
SetDesiredTimescale <floatRedirectInput/float>
Set new time scale.


Outputs