Lua:OutputEvent

From Fortress Forever Wiki
Revision as of 21:27, 11 May 2009 by Crazycarl (talk | contribs) (New page: {{Infobox manual/Header}} ==OutputEvent== Triggers any named entity in the map using Source's [http://developer.valvesoftware.com/wiki/Inputs_and_Outputs#Inputs I/O system]. ===Usage=== ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search


OutputEvent

Triggers any named entity in the map using Source's I/O system.

Usage

OutputEvent( entity, input, parameter, delay, x )

Input

  • entity(string) the entity as named in Hammer
  • input(string) the name of a valid input for the entity
  • parameter(string) OPTIONAL. value override
  • delay(float) OPTIONAL. number of seconds to wait before firing.
  • x(unsigned int) OPTIONAL. fire once boolean

Output

Returns: nothing

Example

--Requires a func_movelinear in the map, named "movelinear_1"
OutputEvent( "movelinear_1", "SetPosition", "0.5" .75, 1 )