Lua Trigger

Component > Dialogue System > Trigger > Lua

Lua Trigger runs Lua code when the specified trigger occurs.

Properties

Property Function
Once Set the quest state once and then destroy this component
Trigger The trigger event that causes the trigger to fire
Condition The Trigger Conditions required for the trigger to fire
Lua Code The Lua code to run

Details

This component runs Lua code when a trigger condition occurs.

The Once checkbox only works during the current scene. If you want this functionality to persist between level changes or saved games, use a Lua condition instead.

This component updates the quest tracker if you've configured one.


<< Components