SCP: Classified Site Plugin API
  • Quick Start
  • DOCS
    • Folder Structure
    • Creating Plugin Project
    • Creating New Player Class
    • Creating New Item Class
    • Creating New Room Event
    • Creating Additional Networked Class
    • Creating New Admin Panel Menu
    • Abilities
    • Replacing Game Logic
    • Plugin Classes/Game Classes Limitations
  • ID's
    • Inventory Image ID
    • Material ID
    • Team ID
    • Hook ID
  • Game C# Classes
    • ACES
    • AdminPanel
    • Button
    • Config
    • CustomLogger
    • DamageHandler
    • DeadBox
    • DoorManager
    • HitBox
    • HookManager
    • IInteractable
    • InputController
    • ItemPickup
    • Lever
    • NetRoom
    • NetworkedButton
    • NetworkedEvent
    • Player
    • PlayerUtilities
    • ResourcesManager
    • ScriptHelper
    • Trigger
    • UIManager
    • Door
    • SupportManager
    • RoundManager
    • Elevator
  • Another C# Classes
    • Rooms
    • Player Classes
    • Items
    • Admin Panel
Powered by GitBook
On this page
  • Info
  • Functions
  • Arguments
  1. DOCS

Abilities

PreviousCreating New Admin Panel MenuNextReplacing Game Logic

Last updated 2 months ago

Under work, some information can be inaccurate

This page corresponds to 1.1.0 version

Info

Abilities is new mechanic that added in 1.1.0, some SCP's reworked to use abilities instead of LMB/RMB interaction. This mechanic handle usage time, recharging and also displays information on UI.

PC users can activate ability by using key, mobile users can press on icon to activate.

Functions

  • [CLIENT] AddAbility(string id, string name, Sprite sprite, float useTime, float rechargeTime, KeyCode triggerKey, bool isReady = false, Action onUse = default, Action onStop = default, Action onReload = default) - add ability.

  • [CLIENT] RemoveAbility(string id) - remove ability.

Arguments

id - must be unique for each ability name - text that will be displayed on UI. sprite - image that will be displayed on UI. useTime - how long will the ability be used. rechargeTime - how long will the ability recharge. triggerKey - key that must be pressed to activate ability. onUse - method that will be invoked upon activation. onStop - method that will be invoked when usage time runs out. onReload - method that will be invoked when reload time runs out. isReady - will ability charged at start.

Ready to use
Recharging/Using