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.userdataif checked withtype(script),scriptif checked withtype2(script).
Return Values
collection:string- The name of the script's collection.
Example
print(GetScriptCollection())
See Also
- DSL