Ulysses

Ulysses Stuff => Suggestions => Topic started by: Sladewill on January 19, 2013, 11:56:44 AM

Title: Ulx Unhook Commands
Post by: Sladewill on January 19, 2013, 11:56:44 AM
Would it be possible to add an addition into the root of ulx to allow the unhooking of commands so that the default commands can be overriden by another?

So currently you have this

ulx.command

Would it be possible to add

ulx.unhookcommand

So that it can be overriden?
Title: Re: Ulx Unhook Commands
Post by: JamminR on January 19, 2013, 01:07:10 PM
1) Why? What are you trying to override?
2) Technically, ULX wouldn't be where you over-ride.
ULIb would be, and, we already have a hook that allows overriding any command.
See Ulib's UlibCommandCalled (http://ulyssesmod.net/docs/files/lua/ulib/shared/defines-lua.html#ULibCommandCalled) hook.