Ulysses

Ulysses Stuff => General Chat & Help and Support => Topic started by: Vaporouscreeper on April 01, 2018, 08:13:40 PM

Title: cmd:setOpposite() help
Post by: Vaporouscreeper on April 01, 2018, 08:13:40 PM
How do i use cmd:setOpposite()
i can't find in the ulib docs
Title: Re: cmd:setOpposite() help
Post by: iViscosity 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 }