Ulysses
General => Developers Corner => Topic started by: WispySkies 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:)
-
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.
-
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!
-
I breathe (and post) but once a blue moon. ;)
-
(http://i.imgur.com/C45RdmM.jpg)