Logic versus random: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with '{{l4d series point|logic_versus_random}} It fires random outputs in the first round of a versus map, and then repeats those outputs in the second round of a versus map. ==Keyval…')
 
mNo edit summary
Line 1: Line 1:
{{l4d series point|logic_versus_random}} It fires random outputs in the first round of a versus map, and then repeats those outputs in the second round of a versus map.
{{l4d series point|logic_versus_random}} It fires random outputs in the first round of a versus map, and then repeats those outputs in the second round of a versus map. In other words, this entity will pick a random number or a series of random numbers in the first round of a versus game, and then repeat those numbers in the second round. This allows designers to add "random" changes to a map (like prop_fuel_barrel placement) and repeat those for the second round.


==Keyvalues==
==Keyvalues==

Revision as of 09:05, 31 October 2010

Template:L4d series point It fires random outputs in the first round of a versus map, and then repeats those outputs in the second round of a versus map. In other words, this entity will pick a random number or a series of random numbers in the first round of a versus game, and then repeat those numbers in the second round. This allows designers to add "random" changes to a map (like prop_fuel_barrel placement) and repeat those for the second round.

Keyvalues

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

  • PickRandom
Fires a random output with at least one connection.

Outputs

  • OnRandom01 to OnRandom16
Fired when the input value equals the the Random01 to Random16 value.

See also

External links