ULX

Author Topic: cmd:setOpposite() help  (Read 1386 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

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
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 PM.