Skip to main content

DamageManager

This item only works when running on the server. Server

Centralized controller for damage. All damage present in the game runs through this script.

Functions

new

DamageManager.new() → self

Initalizes the module.

Damage

DamageManager:Damage(
executorcharacter,
hitCharacterModelInstance,
damagenumber,
additionalArgs{any}?
) → ()

Checks for blocking, ripostes, etc... Then damages the player accordingly. This handles external functions like ripostes and blocking. This will likely be changed in the future.

applyPoison

deprecated in 900ec70
</>
This was deprecated in 900ec70
Functionallity replaced by `StatusHandler`
DamageManager:applyPoison(
characterNamestring,
poisonStatusType
) → ()

Applies poison.

Show raw api
{
    "functions": [
        {
            "name": "new",
            "desc": "Initalizes the module.",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "self"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 91,
                "path": "global/ServerStorage/Scripts/Modules/DamageManager.luau"
            }
        },
        {
            "name": "Damage",
            "desc": "Checks for blocking, ripostes, etc... Then damages the player accordingly.\nThis handles external functions like ripostes and blocking. This will likely be changed in the future.",
            "params": [
                {
                    "name": "executor",
                    "desc": "",
                    "lua_type": "character"
                },
                {
                    "name": "hitCharacterModel",
                    "desc": "",
                    "lua_type": "Instance"
                },
                {
                    "name": "damage",
                    "desc": "",
                    "lua_type": "number"
                },
                {
                    "name": "additionalArgs",
                    "desc": "",
                    "lua_type": "{ any }?"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 106,
                "path": "global/ServerStorage/Scripts/Modules/DamageManager.luau"
            }
        },
        {
            "name": "applyPoison",
            "desc": "Applies poison.",
            "params": [
                {
                    "name": "characterName",
                    "desc": "",
                    "lua_type": "string"
                },
                {
                    "name": "poison",
                    "desc": "",
                    "lua_type": "StatusType"
                }
            ],
            "returns": [],
            "function_type": "method",
            "deprecated": {
                "version": "900ec70",
                "desc": "Functionallity replaced by `StatusHandler`"
            },
            "source": {
                "line": 170,
                "path": "global/ServerStorage/Scripts/Modules/DamageManager.luau"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "DamageManager",
    "desc": "Centralized controller for damage. All damage present in the game runs through this script.",
    "realm": [
        "Server"
    ],
    "source": {
        "line": 9,
        "path": "global/ServerStorage/Scripts/Modules/DamageManager.luau"
    }
}