Skip to main content

logic_random_outputs

logic_random_outputs icon

Point Entity

A message forwarder. Fires up to eight separate outputs, each with a different chance of firing.

Keyvalues

  • Start Disabled (StartDisabled) <Boolean>

  • Entity Scripts (vscripts) <ScriptList>
    Name(s) of script files that are executed after all entities have spawned.

  • Name (targetname) <TargetSource>
    The name that other entities refer to this entity by.

  • Spawnflags (spawnflags) <Flags>

    • Only trigger once
    • Allow fast retrigger
  • OnTrigger1 Chance (OnTriggerChance1) <Float>
    Chance (from 0 to 1) of the OnTrigger1 output firing when this entity is triggered.

  • OnTrigger2 Chance (OnTriggerChance2) <Float>
    Chance (from 0 to 1) of the OnTrigger2 output firing when this entity is triggered.

  • OnTrigger3 Chance (OnTriggerChance3) <Float>
    Chance (from 0 to 1) of the OnTrigger3 output firing when this entity is triggered.

  • OnTrigger4 Chance (OnTriggerChance4) <Float>
    Chance (from 0 to 1) of the OnTrigger4 output firing when this entity is triggered.

  • OnTrigger5 Chance (OnTriggerChance5) <Float>
    Chance (from 0 to 1) of the OnTrigger5 output firing when this entity is triggered.

  • OnTrigger6 Chance (OnTriggerChance6) <Float>
    Chance (from 0 to 1) of the OnTrigger6 output firing when this entity is triggered.

  • OnTrigger7 Chance (OnTriggerChance7) <Float>
    Chance (from 0 to 1) of the OnTrigger7 output firing when this entity is triggered.

  • OnTrigger8 Chance (OnTriggerChance8) <Float>
    Chance (from 0 to 1) of the OnTrigger8 output firing when this entity is triggered.

Inputs

  • Enable <Void>
    Enable this entity.

  • Disable <Void>
    Disable this entity.

  • RunScriptFile <String>
    Load and execute a script file

  • RunScriptCode <String>
    Execute a fragment of script code

  • CallScriptFunction <String>
    Call a script function

  • CallPrivateScriptFunction <String>
    Calls a script function from this entity's private script scope.

  • CallGlobalScriptFunction <String>
    Calls a script function in the global script scope.

  • Kill <Void>
    Removes this entity from the world.

  • KillHierarchy <Void>
    Removes this entity and all its children from the world.

  • AddOutput <String>
    Adds an entity I/O connection to this entity. Parameter format: outputname>targetname>inputname>parameter>delay>max times to fire (-1 == infinite). Very dangerous, use with care.

  • FireUser1 <Void>
    Causes this entity's OnUser1 output to be fired.

  • FireUser2 <Void>
    Causes this entity's OnUser2 output to be fired.

  • FireUser3 <Void>
    Causes this entity's OnUser3 output to be fired.

  • FireUser4 <Void>
    Causes this entity's OnUser4 output to be fired.

  • Trigger <Void>
    Trigger this entity, causing its OnTrigger outputs to fire if it is enabled.

  • Toggle <Void>
    Toggle this entity between enabled and disabled.

  • CancelPending <Void>
    Cancel any events fired by this entity that are currently pending in the I/O event queue.

Outputs

  • OnUser1 <Void>
    Fired in response to FireUser1 input.

  • OnUser2 <Void>
    Fired in response to FireUser2 input.

  • OnUser3 <Void>
    Fired in response to FireUser3 input.

  • OnUser4 <Void>
    Fired in response to FireUser4 input.

  • OnKilled <Void>
    Fired when the entity is killed and removed from the game.

  • OnSpawn <Void>
    Fired when this entity is spawned. If this entity is set to only trigger once, it will delete itself after firing this output.

  • OnTrigger1 <Void>
    This output has a chance to fire when the entity is triggered.

  • OnTrigger2 <Void>
    This output has a chance to fire when the entity is triggered.

  • OnTrigger3 <Void>
    This output has a chance to fire when the entity is triggered.

  • OnTrigger4 <Void>
    This output has a chance to fire when the entity is triggered.

  • OnTrigger5 <Void>
    This output has a chance to fire when the entity is triggered.

  • OnTrigger6 <Void>
    This output has a chance to fire when the entity is triggered.

  • OnTrigger7 <Void>
    This output has a chance to fire when the entity is triggered.

  • OnTrigger8 <Void>
    This output has a chance to fire when the entity is triggered.