Jump to content
Sign in to follow this  
masaker

Setdate for one player on server

Recommended Posts

I want to simulate darkness in the cave if player enter this cave so I need to set date for one player on dedicated server. I tried

setdate [0,0,0,0,0]

in local execute of player but server automatically set time back for this player instantly.

Share this post


Link to post
Share on other sites

You can use post process effects to simulate it, though when players go to video settings, they can temporarily see things without the effect.

ppColor = [url="https://community.bistudio.com/wiki/ppEffectCreate"]ppEffectCreate[/url] ["ColorCorrections", 2100];
ppColor [url="https://community.bistudio.com/wiki/ppEffectEnable"]ppEffectEnable[/url] TRUE;
ppColor [url="https://community.bistudio.com/wiki/ppEffectAdjust"]ppEffectAdjust[/url] [0, 0, 0, [1, 1, 1, 0], [1, 1, 1, 0.0], [1, 1, 1, 1.0]];
ppColor [url="https://community.bistudio.com/wiki/ppEffectCommit"]ppEffectCommit[/url] 6; // how many seconds for the effect to be complete

This would be completely dark. You can try adjusting the colorCorrections values for a less dark effect (or maybe someone else can give good suggestions), and use ppEffectDestroy ppColor; to restore normal vision.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×