abilities
Installation
SKILL.md
CSL Ability System
The ability system provides a framework for creating player abilities with cooldowns, input handling, and UI buttons.
Core Concepts
- Abilities are per-player - Each player has their own list of abilities
- Draw in
ao_late_update- Ability buttons are drawn in the player's late update insideis_local_or_server()check - Implement callbacks - Abilities define
on_init,on_update, and optionallycan_useandon_draw_button
Creating a Basic Ability
My_Ability :: class : Ability_Base {
// Called once when a player joins and ability instances are created for them
on_init :: method() {
name = "My Ability";
icon = get_asset(Texture_Asset, "icons/my_ability.png");
}