Skip to main content

QuestReplication

Handles the replication of a quest from server to client.

Types​

RangeData​

interface RangeData {
Origin: Vector3
Range: number?
}

Functions​

FireExcept​

QuestReplication:FireExcept(
MethodName: string,
Player: Player,
MethodData: MethodData?,
RangeData: RangeData?
) → ()

Fires the method to all clients except the specified player.

FireTo​

QuestReplication:FireTo(
MethodName: string,
Player: Player,
MethodData: MethodData?,
RangeData: RangeData?
) → ()

Fires the method to the specified player.

FireAll​

QuestReplication:FireAll(
MethodName: string,
MethodData: MethodData?,
RangeData: RangeData?
) → ()

Fires the method to all clients.

FireReplicated​

QuestReplication:FireReplicated(
MethodName: string,
MethodData: MethodData?,
RangeData: RangeData?
) → ()

Fires the method to all clients that have replicated the quest.

Fire​

QuestReplication:Fire(
MethodName: string,
MethodData: MethodData?,
FlagData: FlagData?,
RangeData: RangeData?
) → ()

Types

​

interface FlagData {
ReplicatedOnly: boolean
UsedByPlayerException: boolean
}

A more advanced version of FireAll that allows you to specify flags & replication range.

Show raw api
{
    "functions": [
        {
            "name": "FireExcept",
            "desc": "Fires the method to all clients except the specified player.",
            "params": [
                {
                    "name": "MethodName",
                    "desc": "",
                    "lua_type": "string"
                },
                {
                    "name": "Player",
                    "desc": "",
                    "lua_type": "Player"
                },
                {
                    "name": "MethodData",
                    "desc": "",
                    "lua_type": "MethodData?"
                },
                {
                    "name": "RangeData",
                    "desc": "",
                    "lua_type": "RangeData?"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 136,
                "path": "src/ServerStorage/Modules/Replication/QuestReplicationModule.lua"
            }
        },
        {
            "name": "FireTo",
            "desc": "Fires the method to the specified player.",
            "params": [
                {
                    "name": "MethodName",
                    "desc": "",
                    "lua_type": "string"
                },
                {
                    "name": "Player",
                    "desc": "",
                    "lua_type": "Player"
                },
                {
                    "name": "MethodData",
                    "desc": "",
                    "lua_type": "MethodData?"
                },
                {
                    "name": "RangeData",
                    "desc": "",
                    "lua_type": "RangeData?"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 149,
                "path": "src/ServerStorage/Modules/Replication/QuestReplicationModule.lua"
            }
        },
        {
            "name": "FireAll",
            "desc": "Fires the method to all clients.",
            "params": [
                {
                    "name": "MethodName",
                    "desc": "",
                    "lua_type": "string"
                },
                {
                    "name": "MethodData",
                    "desc": "",
                    "lua_type": "MethodData?"
                },
                {
                    "name": "RangeData",
                    "desc": "",
                    "lua_type": "RangeData?"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 159,
                "path": "src/ServerStorage/Modules/Replication/QuestReplicationModule.lua"
            }
        },
        {
            "name": "FireReplicated",
            "desc": "Fires the method to all clients that have replicated the quest.",
            "params": [
                {
                    "name": "MethodName",
                    "desc": "",
                    "lua_type": "string"
                },
                {
                    "name": "MethodData",
                    "desc": "",
                    "lua_type": "MethodData?"
                },
                {
                    "name": "RangeData",
                    "desc": "",
                    "lua_type": "RangeData?"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 172,
                "path": "src/ServerStorage/Modules/Replication/QuestReplicationModule.lua"
            }
        },
        {
            "name": "Fire",
            "desc": "A more advanced version of FireAll that allows you to specify flags & replication range.",
            "params": [
                {
                    "name": "MethodName",
                    "desc": "",
                    "lua_type": "string"
                },
                {
                    "name": "MethodData",
                    "desc": "",
                    "lua_type": "MethodData?"
                },
                {
                    "name": "FlagData",
                    "desc": "",
                    "lua_type": "FlagData?"
                },
                {
                    "name": "RangeData",
                    "desc": "",
                    "lua_type": "RangeData?"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 184,
                "path": "src/ServerStorage/Modules/Replication/QuestReplicationModule.lua"
            }
        }
    ],
    "properties": [],
    "types": [
        {
            "name": "FlagData",
            "desc": "",
            "fields": [
                {
                    "name": "ReplicatedOnly",
                    "lua_type": "boolean",
                    "desc": ""
                },
                {
                    "name": "UsedByPlayerException",
                    "lua_type": "boolean",
                    "desc": ""
                }
            ],
            "source": {
                "line": 27,
                "path": "src/ServerStorage/Modules/Replication/QuestReplicationModule.lua"
            }
        },
        {
            "name": "RangeData",
            "desc": "",
            "fields": [
                {
                    "name": "Origin",
                    "lua_type": "Vector3",
                    "desc": ""
                },
                {
                    "name": "Range",
                    "lua_type": "number?",
                    "desc": ""
                }
            ],
            "source": {
                "line": 32,
                "path": "src/ServerStorage/Modules/Replication/QuestReplicationModule.lua"
            }
        }
    ],
    "name": "QuestReplication",
    "desc": "Handles the replication of a quest from server to client.",
    "source": {
        "line": 17,
        "path": "src/ServerStorage/Modules/Replication/QuestReplicationModule.lua"
    }
}