Difference between revisions of "Logic timer:ru"

From Valve Developer Community
Jump to: navigation, search
m
m (Replaced content with "{{lang|Logic timer|title=logic_timer}} <noinclude>{{Delete|There is no translation}}</noinclude>")
(Tag: Replaced)
 
Line 1: Line 1:
 
{{lang|Logic timer|title=logic_timer}}
 
{{lang|Logic timer|title=logic_timer}}
{{translate:ru}}
+
<noinclude>{{Delete|There is no translation}}</noinclude>
 
 
{{entity|suf=:ru|logic_timer|type=e0|sprite=1}} It fires an [[output]] at regular or random intervals. It can optionally alternate between a "high" and a "low" output.
 
{{clr}}
 
 
 
{{note|Enabling the entity resets its timer.}}
 
{{tip|Use with [[logic_case]] for extremely random events.}}
 
{{warning|This entity uses a high amount of server bandwidth, especially with low refire intervals. Use a [[I/O]] loop with an entity such as {{ent|logic_relay}} for those cases.}}
 
 
 
== Keyvalues ==
 
{{KV|Use Random Time|intn=UseRandomTime|boolean|Makes the entity fire at random intervals. Range of values is restricted by the next two KVs. }}
 
{{KV|Minimum Random Interval|intn=LowerRandomBound|float|If "Use Random Time" is set, this is the minimum time between timer fires. The time will be a random number between this and the "Maximum Random Interval".}}
 
{{KV|Maximum Random Interval|intn=UpperRandomBound|float|If "Use Random Time" is set, this is the maximum time between timer fires. The time will be a random number between the "Minimum Random Interval" and this.}}
 
{{KV|Refire Interval|intn=RefireTime|float|If "Use Random Time" isn't set, this is the time between timer fires, in seconds. Make sure output delay times are less than this value.}}
 
 
 
{{KV EnableDisable}}
 
{{KV Targetname}}
 
 
 
== Flags ==
 
* 1 : Oscillator (alternates between <code>OnTimerHigh</code> and <code>OnTimerLow</code> outputs)
 
 
 
== Inputs ==
 
{{IO|RefireTime|Set a new Refire Interval.|param=float}}
 
{{IO|ResetTimer|Reset the timer. It will fire after the Refire Interval expires.}}
 
{{IO|FireTimer|Force the timer to fire immediately.}}
 
{{IO|Enable|Enable the timer.}}
 
{{IO|Disable|Disable the timer.}}
 
{{IO|Toggle|Toggle the timer on/off.}}
 
{{IO|LowerRandomBound|Set a new Minimum Random Interval.|param=float}}
 
{{IO|UpperRandomBound|Set a new Maximum Random Interval.|param=float}}
 
{{IO|AddToTimer|Add time to the timer if it is currently enabled.  Does not change the Refire Interval.|param=float}}
 
{{IO|SubtractFromTimer|Subtract time from the timer if it is currently enabled.  Does not change the Refire Interval.|param=float}}
 
{{I Targetname}}
 
{{I EnableDisable}}
 
 
 
== Outputs ==
 
{{IO|OnTimer|Fired when the timer expires.}}
 
{{IO|OnTimerHigh|Fired every other time for an oscillating timer.}}
 
{{IO|OnTimerLow|Fired every other time for an oscillating timer.}}
 
{{O Targetname}}
 
 
 
[[Category:IO System:ru]]
 

Latest revision as of 06:21, 8 February 2023

English (en)Русский (ru)
... Icon-Important.png
Warning icon.png
This article has been marked as a candidate for speedy deletion for the following reason:
There is no translation
If you object to this decision, then please discuss why hereIf this page doesn't meet the criteria for speedy deletion, then please remove this notice, but do not remove it from pages that you have created yourself
Administrators - Remember to check if anything links here and the page history (last edit) before deleting.