Skip to main content

DeathReportUtils

Functions

fromDeceasedHumanoid

DeathReportUtils.fromDeceasedHumanoid(
humanoidHumanomid,
weaponDataWeaponData
) → DeathReport

Constructs a new DeathReport from a humanoid

isDeathReport

DeathReportUtils.isDeathReport(deathReportany) → boolean

Returns true if a DeathReport

isWeaponData

DeathReportUtils.isWeaponData(weaponDataany) → boolean

Returns true if a WeaponData

createWeaponData

DeathReportUtils.createWeaponData(weaponInstanceInstance?) → WeaponData

Creates weapon data information

getDeadDisplayName

DeathReportUtils.getDeadDisplayName(deathReportDeathReport) → string

Gets the dead display name for the player who died.

involvesPlayer

DeathReportUtils.involvesPlayer(
deathReportDeathReport,
playerPlayer
) → string

Returns true if the death involves another player

getKillerDisplayName

DeathReportUtils.getKillerDisplayName(deathReportDeathReport) → string?

Gets the killer display name for the player who died.

getDeadColor

DeathReportUtils.getDeadColor(deathReportDeathReport) → Color3?

Returns the dead's color

getKillerColor

DeathReportUtils.getKillerColor(deathReportDeathReport) → Color3?

Returns the killer's color

getDefaultColor

DeathReportUtils.getDefaultColor() → Color3

Gets the default color of a death report to use.

Show raw api
{
    "functions": [
        {
            "name": "fromDeceasedHumanoid",
            "desc": "Constructs a new DeathReport from a humanoid",
            "params": [
                {
                    "name": "humanoid",
                    "desc": "",
                    "lua_type": "Humanomid"
                },
                {
                    "name": "weaponData",
                    "desc": "",
                    "lua_type": "WeaponData"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "DeathReport"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 21,
                "path": "src/deathreport/src/Shared/DeathReportUtils.lua"
            }
        },
        {
            "name": "isDeathReport",
            "desc": "Returns true if a DeathReport",
            "params": [
                {
                    "name": "deathReport",
                    "desc": "",
                    "lua_type": "any"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 56,
                "path": "src/deathreport/src/Shared/DeathReportUtils.lua"
            }
        },
        {
            "name": "isWeaponData",
            "desc": "Returns true if a WeaponData",
            "params": [
                {
                    "name": "weaponData",
                    "desc": "",
                    "lua_type": "any"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 67,
                "path": "src/deathreport/src/Shared/DeathReportUtils.lua"
            }
        },
        {
            "name": "createWeaponData",
            "desc": "Creates weapon data information",
            "params": [
                {
                    "name": "weaponInstance",
                    "desc": "",
                    "lua_type": "Instance?"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "WeaponData"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 77,
                "path": "src/deathreport/src/Shared/DeathReportUtils.lua"
            }
        },
        {
            "name": "getDeadDisplayName",
            "desc": "Gets the dead display name for the player who died.",
            "params": [
                {
                    "name": "deathReport",
                    "desc": "",
                    "lua_type": "DeathReport"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "string"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 91,
                "path": "src/deathreport/src/Shared/DeathReportUtils.lua"
            }
        },
        {
            "name": "involvesPlayer",
            "desc": "Returns true if the death involves another player",
            "params": [
                {
                    "name": "deathReport",
                    "desc": "",
                    "lua_type": "DeathReport"
                },
                {
                    "name": "player",
                    "desc": "",
                    "lua_type": "Player"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "string"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 116,
                "path": "src/deathreport/src/Shared/DeathReportUtils.lua"
            }
        },
        {
            "name": "getKillerDisplayName",
            "desc": "Gets the killer display name for the player who died.",
            "params": [
                {
                    "name": "deathReport",
                    "desc": "",
                    "lua_type": "DeathReport"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "string?"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 128,
                "path": "src/deathreport/src/Shared/DeathReportUtils.lua"
            }
        },
        {
            "name": "getDeadColor",
            "desc": "Returns the dead's color",
            "params": [
                {
                    "name": "deathReport",
                    "desc": "",
                    "lua_type": "DeathReport"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Color3?"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 151,
                "path": "src/deathreport/src/Shared/DeathReportUtils.lua"
            }
        },
        {
            "name": "getKillerColor",
            "desc": "Returns the killer's color",
            "params": [
                {
                    "name": "deathReport",
                    "desc": "",
                    "lua_type": "DeathReport"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Color3?"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 168,
                "path": "src/deathreport/src/Shared/DeathReportUtils.lua"
            }
        },
        {
            "name": "getDefaultColor",
            "desc": "Gets the default color of a death report to use.",
            "params": [],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Color3"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 183,
                "path": "src/deathreport/src/Shared/DeathReportUtils.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "DeathReportUtils",
    "desc": "",
    "source": {
        "line": 4,
        "path": "src/deathreport/src/Shared/DeathReportUtils.lua"
    }
}