Skip to main content

GetScriptCollection

This function was added in DSL 4

Description

Returns the name of script's collection, or of the current collection.

function GetScriptCollection(script) --[[ ... ]] end

Parameters

  • script?: userdata|script|nil - (Optional) The script object. userdata if checked with type(script), script if checked with type2(script).

Return Values

  • collection: string - The name of the script's collection.

Example

print(GetScriptCollection())

See Also