Logic random outputs: Difference between revisions
Jump to navigation
Jump to search
m (→Outputs) |
m (Re-arranged some fields) |
||
Line 5: | Line 5: | ||
==Keyvalues== | ==Keyvalues== | ||
{{KV|OnTrigger1 Chance|float|Chance (from 0 to 1) of the OnTrigger1 output firing when this entity is triggered.}} | {{KV|OnTrigger1 Chance|float|Chance (from 0 to 1) of the OnTrigger1 output firing when this entity is triggered.}} | ||
{{KV|OnTrigger2 Chance|float|Chance (from 0 to 1) of the OnTrigger2 output firing when this entity is triggered.}} | {{KV|OnTrigger2 Chance|float|Chance (from 0 to 1) of the OnTrigger2 output firing when this entity is triggered.}} | ||
Line 15: | Line 13: | ||
{{KV|OnTrigger7 Chance|float|Chance (from 0 to 1) of the OnTrigger7 output firing when this entity is triggered.}} | {{KV|OnTrigger7 Chance|float|Chance (from 0 to 1) of the OnTrigger7 output firing when this entity is triggered.}} | ||
{{KV|OnTrigger8 Chance|float|Chance (from 0 to 1) of the OnTrigger8 output firing when this entity is triggered.}} | {{KV|OnTrigger8 Chance|float|Chance (from 0 to 1) of the OnTrigger8 output firing when this entity is triggered.}} | ||
{{KV Targetname}} | |||
{{KV EnableDisable}} | |||
==Flags== | ==Flags== | ||
Line 21: | Line 21: | ||
==Inputs== | ==Inputs== | ||
{{IO|Trigger|Trigger this entity, causing its OnTrigger outputs to fire if it is enabled.}} | {{IO|Trigger|Trigger this entity, causing its OnTrigger outputs to fire if it is enabled.}} | ||
{{IO|Toggle|Toggle this entity between enabled and disabled.}} | {{IO|Toggle|Toggle this entity between enabled and disabled.}} | ||
{{IO|CancelPending|Cancel any events fired by this entity that are currently pending in the I/O event queue.}} | {{IO|CancelPending|Cancel any events fired by this entity that are currently pending in the I/O event queue.}} | ||
{{I Targetname}} | |||
{{I EnableDisable}} | |||
==Outputs== | ==Outputs== | ||
{{IO|OnSpawn|Fired when this entity is spawned. If this entity is set to only trigger once, it will delete itself after firing this output.}} | {{IO|OnSpawn|Fired when this entity is spawned. If this entity is set to only trigger once, it will delete itself after firing this output.}} | ||
{{IO|OnTrigger1|This output has a chance to fire when the entity is triggered.}} | {{IO|OnTrigger1|This output has a chance to fire when the entity is triggered.}} | ||
Line 38: | Line 37: | ||
{{IO|OnTrigger7|This output has a chance to fire when the entity is triggered.}} | {{IO|OnTrigger7|This output has a chance to fire when the entity is triggered.}} | ||
{{IO|OnTrigger8|This output has a chance to fire when the entity is triggered.}} | {{IO|OnTrigger8|This output has a chance to fire when the entity is triggered.}} | ||
{{O Targetname}} |
Revision as of 01:14, 13 May 2011
Entity description
A message forwarder. Fires up to eight separate outputs, each with a different chance of firing.
Keyvalues
- OnTrigger1 Chance ([todo internal name (i)]) <float>
- Chance (from 0 to 1) of the OnTrigger1 output firing when this entity is triggered.
- OnTrigger2 Chance ([todo internal name (i)]) <float>
- Chance (from 0 to 1) of the OnTrigger2 output firing when this entity is triggered.
- OnTrigger3 Chance ([todo internal name (i)]) <float>
- Chance (from 0 to 1) of the OnTrigger3 output firing when this entity is triggered.
- OnTrigger4 Chance ([todo internal name (i)]) <float>
- Chance (from 0 to 1) of the OnTrigger4 output firing when this entity is triggered.
- OnTrigger5 Chance ([todo internal name (i)]) <float>
- Chance (from 0 to 1) of the OnTrigger5 output firing when this entity is triggered.
- OnTrigger6 Chance ([todo internal name (i)]) <float>
- Chance (from 0 to 1) of the OnTrigger6 output firing when this entity is triggered.
- OnTrigger7 Chance ([todo internal name (i)]) <float>
- Chance (from 0 to 1) of the OnTrigger7 output firing when this entity is triggered.
- OnTrigger8 Chance ([todo internal name (i)]) <float>
- Chance (from 0 to 1) of the OnTrigger8 output firing when this entity is triggered.
- 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
- Start Disabled (StartDisabled) <boolean>
- Stay dormant until activated (with the
Enable
input).
Flags
- 1 : Only trigger once
- 2 : Allow fast retrigger
Inputs
- Trigger
- Trigger this entity, causing its OnTrigger outputs to fire if it is enabled.
- Toggle
- Toggle this entity between enabled and disabled.
- CancelPending
- Cancel any events fired by this entity that are currently pending in the I/O event queue.
EnableDisable:
- Enable / Disable
- Enable/disable this entity from performing its task. It might also disappear from view.
Outputs
- OnSpawn
- Fired when this entity is spawned. If this entity is set to only trigger once, it will delete itself after firing this output.
- OnTrigger1
- This output has a chance to fire when the entity is triggered.
- OnTrigger2
- This output has a chance to fire when the entity is triggered.
- OnTrigger3
- This output has a chance to fire when the entity is triggered.
- OnTrigger4
- This output has a chance to fire when the entity is triggered.
- OnTrigger5
- This output has a chance to fire when the entity is triggered.
- OnTrigger6
- This output has a chance to fire when the entity is triggered.
- OnTrigger7
- This output has a chance to fire when the entity is triggered.
- OnTrigger8
- This output has a chance to fire when the entity is triggered.