Since 1.08, GetHumanInventory().CreateInHands() function stopped working with no error messages when used on a client-side spawned Survivor.
- Operating System
- Windows 10
- Operating System Version
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.
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.