Ulysses Stuff > General Chat & Help and Support

cmd:setOpposite() help

(1/1)

Vaporouscreeper:
How do i use cmd:setOpposite()
i can't find in the ulib docs

iViscosity:
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 }

Navigation

[0] Message Index

Go to full version