General > Developers Corner

BoolArg explanation

(1/1)

Tomzen:
Looking at some of the sources from some commands and notice this line a lot:

--- Code: ---(cmd):addParam{ type=ULib.cmds.BoolArg, invisible=true }
--- End code ---
I would love it if someone could explain when or when not this param would be needed, Just from a brief look I can see its mostly included when the command has a (SILENT) function. Is this correct?

JamminR:
http://ulyssesmod.net/docs/files/lua/ulib/shared/commands-lua.html#cmds.BoolArg
Sums it reasonably well.
Let's you add boolean extra param to do something (or not).

Tomzen:
alright thanks

Navigation

[0] Message Index

Go to full version