Ulysses
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Login
Register
Ulysses
»
Ulysses Stuff
»
General Chat & Help and Support
»
cmd:setOpposite() help
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: cmd:setOpposite() help (Read 1417 times)
0 Members and 2 Guests are viewing this topic.
Vaporouscreeper
Newbie
Posts: 22
Karma: 0
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
Logged
I'm a Moderator on a server called TheBox. and i'm mostly active on it
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 }
Logged
I'm iViscosity. I like gaming and programming. Need some help?
Shoot me PM
.
Print
Pages: [
1
]
Go Up
« previous
next »
Ulysses
»
Ulysses Stuff
»
General Chat & Help and Support
»
cmd:setOpposite() help