Player object's location lag
- Ranakastrasz
- Smart Inserter
- Posts: 2179
- Joined: Thu Jun 12, 2014 3:05 am
- Contact:
Player object's location lag
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?
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16
Re: Player object's location lag
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.
There's no way to get the location of the latency state player because it only exists visually.
If you want to get ahold of me I'm almost always on Discord.
- Ranakastrasz
- Smart Inserter
- Posts: 2179
- Joined: Thu Jun 12, 2014 3:05 am
- Contact:
Re: Player object's location lag
Hmm. Is there a way to place a visual effect on that local version of the player image?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.
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16
Re: Player object's location lag
NoRanakastrasz wrote:Hmm. Is there a way to place a visual effect on that local version of the player image?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.
If you want to get ahold of me I'm almost always on Discord.
Re: Player object's location lag
why not?Rseding91 wrote:NoRanakastrasz wrote:Hmm. Is there a way to place a visual effect on that local version of the player image?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.
- Ranakastrasz
- Smart Inserter
- Posts: 2179
- Joined: Thu Jun 12, 2014 3:05 am
- Contact:
Re: Player object's location lag
Is there any way to attach it via some knockoff of the slowdown capsule effect?
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16
Re: Player object's location lag
There is no API for lag hiding - everything done in lua is subject to multiplayer lag.
- Ranakastrasz
- Smart Inserter
- Posts: 2179
- Joined: Thu Jun 12, 2014 3:05 am
- Contact:
Re: Player object's location lag
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.
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16
Re: Player object's location lag
(I think) it only affects unitsRanakastrasz 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.