Show raw api
{
"functions": [
{
"name": "on_death",
"desc": "run the death event for the player specified.",
"params": [
{
"name": "player",
"desc": "the player that died.",
"lua_type": "Player"
}
],
"returns": [],
"function_type": "static",
"source": {
"line": 45,
"path": "src/shared/utils/checkpoints.luau"
}
},
{
"name": "set",
"desc": "run the death event for the player specified.",
"params": [
{
"name": "player",
"desc": "the player that died.",
"lua_type": "Player"
},
{
"name": "pillar",
"desc": "the pillar that the checkpoint is in.",
"lua_type": "pillar"
},
{
"name": "id",
"desc": "the id of the checkpoint.",
"lua_type": "string"
},
{
"name": "position",
"desc": "the position of the checkpoint.",
"lua_type": "CFrame"
}
],
"returns": [],
"function_type": "static",
"source": {
"line": 83,
"path": "src/shared/utils/checkpoints.luau"
}
},
{
"name": "get",
"desc": "get the checkpoint for the player specified.",
"params": [
{
"name": "player",
"desc": "the player that died.",
"lua_type": "Player"
}
],
"returns": [
{
"desc": "the checkpoint data for the player, or nil if none exists.",
"lua_type": "checkpoint_data?"
}
],
"function_type": "static",
"source": {
"line": 100,
"path": "src/shared/utils/checkpoints.luau"
}
},
{
"name": "clear",
"desc": "remove the checkpoint for the player specified.",
"params": [
{
"name": "player",
"desc": "the player that died.",
"lua_type": "Player"
}
],
"returns": [],
"function_type": "static",
"source": {
"line": 112,
"path": "src/shared/utils/checkpoints.luau"
}
}
],
"properties": [],
"types": [
{
"name": "checkpoint_data",
"desc": "represents an active effect that the player has.",
"fields": [
{
"name": "effect",
"lua_type": "string",
"desc": "the name of the effect."
},
{
"name": "change",
"lua_type": "number",
"desc": "the amount of change the effect will apply."
},
{
"name": "lifetime",
"lua_type": "number",
"desc": "the time, in seconds, the effect will last."
},
{
"name": "start",
"lua_type": "number",
"desc": "the timestamp of when the most recent time the effect was applied."
}
],
"source": {
"line": 22,
"path": "src/shared/utils/checkpoints.luau"
}
}
],
"name": "checkpoint_utils",
"desc": "this module contains *checkpoint utils* that are used by the *death manager*.",
"tags": [
"utility"
],
"source": {
"line": 34,
"path": "src/shared/utils/checkpoints.luau"
}
}