Author Topic: cmd:setOpposite() help  (Read 106 times)

0 Members and 1 Guest are viewing this topic.

Offline Vaporouscreeper

  • Newbie
  • *
  • Posts: 22
  • Karma: 0
    • TheBox steam group
cmd:setOpposite() help
« on: April 01, 2018, 08:13:40 PM »
How do i use cmd:setOpposite()
i can't find in the ulib docs
I'm a Moderator on a server called TheBox. and i'm mostly active on it

Offline iViscosity

  • Hero Member
  • *****
  • Posts: 757
  • Karma: 47
Re: cmd:setOpposite() help
« Reply #1 on: April 01, 2018, 08:25:48 PM »
http://ulyssesmod.net/docs/files/lua/ulib/shared/commands-lua.html#cmds.TranslateCommand.cmds.TranslateCommand:setOpposite

Basically it's cmd:setOpposite( "console_command", {list, of, args, to, specify}, "chat_command", hide_command_in_chat?, force_space_after_command? )

The list of args basically forces the function to use those args instead. For example, if you had args ( calling_ply, target_ply, should ) and the setOpposite should make that "should" argument false, you'd have { _, _, false }
I'm iViscosity. I like gaming and programming. Need some help? Shoot me a PM or Join my Discord!.
--==[ Links ]==--
Steam
YouTube
Steam Group (feel free to join!)
Discord

Quote from: Steve Jobs
Your work is going to fill a large part of your life, and the only way to be truly satisfied is to do what you believe is great work. And the only way to do great work is to love what you do. If you haven't found it yet, keep looking. Don't settle. As with all matters of the heart, you'll know when you find it. And, like any great relationship, it just gets better and better as the years roll on. So keep looking until you find it. Don't settle.