AbilityOnTickEvent - jimdroberts/FishMMO GitHub Wiki

Description

ScriptableObject event triggered when an ability object ticks (e.g., moves or applies continuous effects). Inherits from AbilityEvent and is used to define custom logic or effects that occur on each tick of an ability object in the FishMMO system.


API Access

Methods

  • (Inherited) Methods from AbilityEvent

    All methods from the base AbilityEvent class are available. This class does not add new methods or fields.


Basic Usage

Setup

  1. Create a new AbilityOnTickEvent asset via the Unity menu: FishMMO/Abilities/Events/Ability On Tick Event.
  2. Assign the event asset to an ability or object that should trigger logic on each tick.
  3. Configure any inherited fields or properties as needed in the Inspector.
  4. Integrate with the ability system to ensure the event is triggered at the correct time.

Example

// Example 1: Using AbilityOnTickEvent

// This example demonstrates how to create and assign an AbilityOnTickEvent
// to an ability object so that custom logic is triggered on each tick.

// 1. In Unity, create a new AbilityOnTickEvent asset.
// 2. Assign it to the relevant ability or prefab.
// 3. Implement any custom logic in scripts that listen for the event.
⚠️ **GitHub.com Fallback** ⚠️