Lua:OutputEvent

From Fortress Forever Wiki
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 )