Page 1 of 1
Player object's location lag
Posted: Sat May 28, 2016 2:16 pm
by Ranakastrasz
In multiplayer, if you use a script to get a player's location, it lags behind by a tile or two. This results in any animations you try to place on top of the player sliding behind them. Is there a way to fix this?
Re: Player object's location lag
Posted: Sat May 28, 2016 2:34 pm
by Rseding91
The location the script is using is the actual player location. The one you see in MP is the local latency state version of the player.
There's no way to get the location of the latency state player because it only exists visually.
Re: Player object's location lag
Posted: Sat May 28, 2016 2:39 pm
by Ranakastrasz
Rseding91 wrote:The location the script is using is the actual player location. The one you see in MP is the local latency state version of the player.
There's no way to get the location of the latency state player because it only exists visually.
Hmm. Is there a way to place a visual effect on that local version of the player image?
Re: Player object's location lag
Posted: Sat May 28, 2016 9:31 pm
by Rseding91
Ranakastrasz wrote:Rseding91 wrote:The location the script is using is the actual player location. The one you see in MP is the local latency state version of the player.
There's no way to get the location of the latency state player because it only exists visually.
Hmm. Is there a way to place a visual effect on that local version of the player image?
No
Re: Player object's location lag
Posted: Sat May 28, 2016 10:16 pm
by Zeblote
Rseding91 wrote:Ranakastrasz wrote:Rseding91 wrote:The location the script is using is the actual player location. The one you see in MP is the local latency state version of the player.
There's no way to get the location of the latency state player because it only exists visually.
Hmm. Is there a way to place a visual effect on that local version of the player image?
No
why not?
Re: Player object's location lag
Posted: Sat May 28, 2016 11:01 pm
by Ranakastrasz
Is there any way to attach it via some knockoff of the slowdown capsule effect?
Re: Player object's location lag
Posted: Sat May 28, 2016 11:23 pm
by DaveMcW
There is no API for lag hiding - everything done in lua is subject to multiplayer lag.
Re: Player object's location lag
Posted: Sun May 29, 2016 12:18 am
by Ranakastrasz
That makes sense. What happens if you hit a player with a slow capsule? Does the effect follow them? Actually, how is the player immune to it in the first place? I actually couldn't figure that out.
Re: Player object's location lag
Posted: Sun May 29, 2016 12:19 am
by Klonan
Ranakastrasz wrote:That makes sense. What happens if you hit a player with a slow capsule? Does the effect follow them? Actually, how is the player immune to it in the first place? I actually couldn't figure that out.
(I think) it only affects units