Syntax
setnamecallmethod(method: string)Aliases
set_namecall_methodArguments
| Name | Type | Description |
|---|---|---|
method | string | String used to replace the current namecall method when one exists. |
Description
Replaces the current namecall method string when a current namecall method exists. The method argument must be a string. If no current namecall method exists, the call returns no values and does not create one. set_namecall_method is an alias.
Call it with 1 parameter(s): method. The argument table explains which values are required and which ones only refine the behavior.
It does not return data. Treat the call as an action and handle errors around the call site when needed.
Example
Replace L->namecall when a namecall atom already exists.
setnamecallmethod("FindFirstChild")
print(getnamecallmethod())
set_namecall_method("WaitForChild")
print(get_namecall_method())