Author Topic: BoolArg explanation  (Read 1697 times)

0 Members and 1 Guest are viewing this topic.

Offline Tomzen

  • Full Member
  • ***
  • Posts: 115
  • Karma: -1
  • A new lua adventurer
    • Thirdage Gaming
BoolArg explanation
« on: May 07, 2015, 08:59:23 PM »
Looking at some of the sources from some commands and notice this line a lot:
Code: [Select]
(cmd):addParam{ type=ULib.cmds.BoolArg, invisible=true }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?
Finished:
Impersonate
<==> FakePromote/Demote <==> RandomMap <==> ForceMic <==> Search <==> PlayMenu <==
WIP:
ServerMode <==

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: BoolArg explanation
« Reply #1 on: May 07, 2015, 09:08:15 PM »
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).

"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Tomzen

  • Full Member
  • ***
  • Posts: 115
  • Karma: -1
  • A new lua adventurer
    • Thirdage Gaming
Re: BoolArg explanation
« Reply #2 on: May 07, 2015, 09:20:29 PM »
alright thanks
Finished:
Impersonate
<==> FakePromote/Demote <==> RandomMap <==> ForceMic <==> Search <==> PlayMenu <==
WIP:
ServerMode <==