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
»
General
»
Developers Corner
»
ULib.getExclusive
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: ULib.getExclusive (Read 2021 times)
0 Members and 1 Guest are viewing this topic.
WispySkies
Full Member
Posts: 144
Karma: 0
I make random commands and Lua errors.
ULib.getExclusive
«
on:
November 11, 2015, 05:30:14 PM »
After starting lua development I've seen something like ULib.getExclusive in some code. What is is? (I probably sound stupid D:)
Logged
Megiddo
Ulysses Team Member
Hero Member
Posts: 6214
Karma: 394
Project Lead
Re: ULib.getExclusive
«
Reply #1 on:
November 11, 2015, 06:14:45 PM »
It's basically a way of making sure that conflicting actions are not performed on a player. For example, ragdolling someone and then mauling them doesn't make sense, and setting an "exclusive" mode is a way of taking care of that.
Logged
Experiencing God's grace one day at a time.
JamminR
Ulysses Team Member
Hero Member
Posts: 8096
Karma: 390
Sertafide Ulysses Jenius
Re: ULib.getExclusive
«
Reply #2 on:
November 11, 2015, 06:17:18 PM »
There is no 'ULib' library function for the exclusivity. Only a ulx function.
https://github.com/Nayruden/Ulysses/blob/7051b70538080f8bf1238ca1363766369125540e/ulx/lua/ulx/lib.lua#L3
getExclusive checks for target players that have been setExclusive.
setExclusive basically flags a player object with a flag, basically stating 'big punishment, don't do any other'
Maul. Jail, to name but very few.
Stuff you wouldn't want to interrupt with other punishments.
EDIT - *blink*
Megiddo sniped me.
Wait...he's HERE!
Logged
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming
Megiddo
Ulysses Team Member
Hero Member
Posts: 6214
Karma: 394
Project Lead
Re: ULib.getExclusive
«
Reply #3 on:
November 12, 2015, 03:12:56 AM »
I breathe (and post) but once a blue moon.
Logged
Experiencing God's grace one day at a time.
WispySkies
Full Member
Posts: 144
Karma: 0
I make random commands and Lua errors.
Re: ULib.getExclusive
«
Reply #4 on:
November 12, 2015, 01:30:32 PM »
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Ulysses
»
General
»
Developers Corner
»
ULib.getExclusive