ULX

Author Topic: ULib.getExclusive  (Read 2073 times)

0 Members and 1 Guest are viewing this topic.

Offline 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:)

Offline 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.
Experiencing God's grace one day at a time.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
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!
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline 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. ;)
Experiencing God's grace one day at a time.

Offline 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 »