Trigger Behaviors

The trigger behavior is how we define the rules around the player pressing an input and applying that to the rest of the weapon. Examples of this include:

  • Activate the emitter every X seconds (semi-automatic)
  • Only shoot if the input is held down for X amount of time
  • Prevent shooting unless a valid target has been found
  • Automatically trigger when health reaches below a certain value and apply a cooldown