This article relates to the game "Portal 2." Click here for more information.

Comp numeric transition: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (infotable)
(Multipage Template)
Tag: Replaced
Line 7: Line 7:
|in={{teamspen|4}}
|in={{teamspen|4}}
}}
}}
{{this is a|name=comp_numeric_transition|game=Portal 2: Community Edition|e1}} It is also available in any game with {{teamspen|4}} installed. It changes a keyvalue or input over time with various options, when triggered.
{{this is a|name=comp_numeric_transition|game=Portal 2: Community Edition|e1}}  
 
{{Multipage}}
==KeyValues==
{{KV|Start Disabled|choices}}
:*0: No
:*0: Yes
{{KV|Entity to Control|target_destination|The entity to which the outputs will be directed to.}}
{{KV|Keyvalue/Input Name|string|The name of the keyvalue or input to change. If the target is not an entity findable by the [[postcompiler]], IO Type must be set.}}
{{KV|I/O Type|choices|The method used to control an entity. If Input, use the input name provided. If KeyValue, use the AddOutput to change the keyvalue. If Auto, examine the entity class that is being controlled to determine the appropriate mode.}}
:*auto: Automatic
:*io: Input
:*kv: KeyValue (AddOutput)
{{KV|Value Type|choices|The behaviour of the input, used to control what actual values are sent. Regardless of this value, the other options are 'position'-type values!}}
:*set: Instantly Set
:*moveto: Move to value
:*speed: Adjust Speed
:*light: Light Pattern
{{KV|Beat Interval|float|Time between each output. Smaller values are more accurate but increase the outputs generated.}}
{{KV|Start Delay|float|Wait this amount of time after being triggered before animating.}}
{{KV|Duration|float|Time the change will take.}}
{{KV|Start Value|float|Starting value. If the Value Type is Light Pattern, these may be a-z letters.}}
{{KV|Ending Value|float|Ending value. If the Value Type is Light Pattern, these may be a-z letters.}}
{{KV|Easing Start|choices|Controls how the animation begins.}}
:*linear: None
:*quad: Quadratic (x^2)
:*cubic: Cubic (x^3)
:*quartic: Quartic (x^4)
:*sine: Sinusoidal
{{KV|Easing End|choices|Controls how the animation ends.}}
:*linear: None
:*quad: Quadratic (x^2)
:*cubic: Cubic (x^3)
:*quartic: Quartic (x^4)
:*sine: Sinusoidal
{{KV Targetname}}
 
==Flags==
{{Fl|1|Only trigger once}}
{{Fl|2|Allow fast retrigger}}
 
==Inputs==
{{IO|Enable|Allows the relay to fire the OnTrigger outputs after being disabled.}}
{{IO|Disable|Prevents the relay from firing OnTrigger outputs in response to Trigger inputs.}}
{{IO|Trigger|Trigger the relay, causing its OnTrigger output to fire if it is enabled.}}
{{IO|Toggle|Toggle the relay between enabled and disabled.}}
{{IO|CancelPending|Cancel any events fired by this relay that are currently pending in the I/O event queue.}}
{{IO|EnableRefire|Automatically fired on a relay after any delayed outputs finish firing, allowing it to fire again.|nofgd=1}}
{{IO|TriggerWithParameter|param=string|only={{mapbase}}{{P2CE}}|Triggers the relay with a parameter, causing its OnTriggerParameter output to fire if it is enabled.}}
{{I Targetname}}
 
==Outputs==
{{IO|OnSpawn|Fired when the relay is spawned. If the relay is set to only trigger once, it will delete itself after firing this output.}}
{{IO|OnTrigger|Fired when the relay is triggered. If the relay is set to only trigger once, it will delete itself after firing this output.}}
{{IO|OnTriggerParameter|param=string|only={{mapbase}}{{P2CE}}|Fired when the relay is triggered with a parameter. If the relay is set to only trigger once, it will delete itself after firing this output.}}
{{O Targetname}}
 
==See Also==
* [[TeamSpen's Hammer Addons]]

Revision as of 09:03, 19 December 2023

comp_numeric_transition
Comp numeric transition.png
TypeInternal Point entity
EngineSource Source
AvailabilityTeamSpen's Hammer Addons TeamSpen's Hammer Addons
 

comp_numeric_transition is an e1 available in Portal 2: Community Edition Portal 2: Community Edition. Template:Multipage