398 {
399 ItemPreviewWidget iw = ItemPreviewWidget.Cast( w.FindAnyWidget("Render") );
400 if(!iw)
401 {
402 string name = w.GetName();
403 name.Replace(
"PanelWidget",
"Render");
404 iw = ItemPreviewWidget.Cast( w.FindAnyWidget(
name) );
405 }
406 if(!iw)
407 {
408 iw = ItemPreviewWidget.Cast( w );
409 }
411 return;
412 if(
m_Entity.GetInventory().CanAddAttachment( iw.
GetItem() ) && iw.
GetItem().GetInventory().CanRemoveEntity() )
413 {
415 }
416 else if(
m_Entity.GetInventory().CanAddEntityToInventory( iw.
GetItem() ) && iw.
GetItem().GetInventory().CanRemoveEntity() )
417 {
419 }
420 }
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
FindInventoryLocationType
flags for searching locations in inventory
proto native DayZPlayer GetPlayer()
proto native CGame GetGame()