Page MenuHomeFeedback Tracker

GetHumanInventory().CreateInHands() broken on client-side spawned survivors
Assigned, UrgentPublic

Description

Since 1.08, GetHumanInventory().CreateInHands() function stopped working with no error messages when used on a client-side spawned Survivor.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10
Operating System Version
N/A
Category
General
Steps To Reproduce
PlayerBase m_PreviewEntity = PlayerBase.Cast(GetGame().CreateObject("SurvivorF_Eva", "0 0 0", true));
EntityAI m_PreviewHands = m_PreviewEntity.GetHumanInventory().CreateInHands("M4A1");

spawning a player on client-side like this and trying to have it holding a weapon, the entity will not spawn in it's hands. Also cannot use CreateAttachmentEx on the InventorySlots.HANDS slot.

Event Timeline

Geez changed the task status from New to Assigned.Sep 4 2020, 1:11 PM

for more context, the intention is to be able to create a survivor on the client-side for using in the PlayerPreviewWidget that I can adjust textures or items on, without affecting the actual player itself.