Page MenuHomeFeedback Tracker

Face bug texture when create player at "0 0 0"
New, UrgentPublic

Description

Hello,

Today, wanted to create a menu where you have a clone of you, so currently I have modded the PlayerPreview, this is normal, it was just for test.

When I create my clone at "0 0 0" his face is white, so like face has no texture, but if I move it to my position it's working fine

I'm spawning my character locally so maybe this could lead to the problem.

Details

Severity
Major
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General
Steps To Reproduce
modded class PlayerPreview
{
    protected PlayerBase m_Player;

    void PlayerPreview( LayoutHolder parent )
	{
        Print("PlayerPreview::PlayerPreview 1");
        m_Player = PlayerBase.Cast( GetGame().CreateObject( GetGame().GetPlayer().GetType(), "0 0 0", true ) );
		m_CharacterPanelWidget.SetModelPosition( "0 0 0.605" );
		m_CharacterPanelWidget.SetSize( 1.34, 1.34 );

        //m_Player.SetPosition(GetGame().GetPlayer().GetPosition());

        m_CharacterPanelWidget.SetPlayer( m_Player );
    }

    void ~PlayerPreview()
    {
        Print("PlayerPreview::~PlayerPreview");
        if (m_Player)
        {
            GetGame().ObjectDeleteOnClient(m_Player);
        }
    }

    override void UpdateInterval()
	{
        super.UpdateInterval();

        DayZPlayer dummyPlayer = m_CharacterPanelWidget.GetDummyPlayer();
        if (dummyPlayer)
        {

        }
    }
}

You can remove commented line, if you want to set the player at your position.

Event Timeline

NiiRoZz created this task.Feb 24 2020, 10:12 AM