Lionar
Member
Hello,
i'm working to make a realistic Sleep System. To make it really realistic (
) players that falls sleep have to "Close" their eyes.
So i've just added a "pm.LightLevel = 30" or "pm.LightLevel = 0" when needed but nothing seems to change on player's screen. I've played a littlebit with the [GlobalLight command and everything is working fine, i type the value and the "night" falls. Razor Negotiator is blocking lightlevels feature so ppl can't bypass my system.
I've checked the PlayerMobiles's override of CheckLightLevels and ComputeBaseLightLevels and then tryed to give a value directly there adding a if(Sleeping) but nothing changes...
So...why GlobalLight Command is working fine and changing manually LightLevel value of the PM does nothing? What i'm ignoring? Maybe i've to launch a MobileUpdate on lightlevel change? I'm so Confused.
p.s. Running on latest ServUO publish.
i'm working to make a realistic Sleep System. To make it really realistic (
So i've just added a "pm.LightLevel = 30" or "pm.LightLevel = 0" when needed but nothing seems to change on player's screen. I've played a littlebit with the [GlobalLight command and everything is working fine, i type the value and the "night" falls. Razor Negotiator is blocking lightlevels feature so ppl can't bypass my system.
I've checked the PlayerMobiles's override of CheckLightLevels and ComputeBaseLightLevels and then tryed to give a value directly there adding a if(Sleeping) but nothing changes...
So...why GlobalLight Command is working fine and changing manually LightLevel value of the PM does nothing? What i'm ignoring? Maybe i've to launch a MobileUpdate on lightlevel change? I'm so Confused.
p.s. Running on latest ServUO publish.