Closed TuK4z closed 1 year ago
why u use our localplayer entity for the Playerfactory, this cannot work. Play a playerentity directly for player factory
Sorry i think trying different ways left this. But i changed and crash still happen.
public class EGPlayerFactory : IPlayerFactory
{
public IPlayer Create(ICore core, IntPtr playerPointer, uint id)
{
return new EGPlayer(core, playerPointer, id);
}
public ILocalPlayer GetLocalPlayer(ICore core, IntPtr localPlayerPointer, uint id)
{
return new EGPlayer(core, localPlayerPointer, id);
}
}
yes this is not possible, there need to be 2 different player classes
Using factory in clientside crashes client, no logs displayed. Crash happens when using this part of code:
Additional code: