Rewrites the method name dispatched by the active __namecall metamethod.
Takes a string and replaces the method name on the active namecall, so dispatch routes to the new method instead of the one the caller originally asked for. Only meaningful inside a __namecall metamethod.
Most commonly used inside a hookmetamethod(game, "__namecall", ...) hook to swap the called method for any other one you want.
Parameters
Returns
void
Example
Find an RPG game with loot mechanics, where a client ModuleScript loops through items on the ground and calls :PickUp() on each one. Filter the call so only rare items go through; common ones get redirected to a method that destroys them.
Useful for redirecting call flows in custom __namecall hooks.