RemoveCommandHandler

From Wiki G1R-MP G1 Remake Multiplayer
Jump to navigation Jump to search

removeCommandHandler

Removes a command handler owned by the current resource.

Syntax

bool removeCommandHandler(string commandName)

Parameters

Name Type Required Description
commandName string yes Command name without the leading slash.

Returns

Returns true if a handler was removed; otherwise returns false.

Examples

Remove a command during resource shutdown:

removeCommandHandler("heal")

Notes

  • Available only in server-side resource scripts.