Version:

Lua Script Component

Use the Lua Script component to add arbitrary Lua logic to an entity in the form of a Lua script. For information on the Lua Script component and writing Lua scripts, see Writing Lua Scripts.