DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ GetTarget()

void ActionTargetsCursor::GetTarget ( )
inlineprotected

См. определение в файле ActionTargetsCursor.c строка 704

705 {
706 if (!m_AM)
707 return;
708
709 m_Target = m_AM.FindActionTarget();
710 Object targetObj;
711 if (m_Target && Class.CastTo(targetObj,m_Target.GetObject()))
712 {
713 if (targetObj.IsItemBase())
714 {
715 ItemBase item = ItemBase.Cast(targetObj);
716 InventoryLocation invLocation = new InventoryLocation();
717 item.GetInventory().GetCurrentInventoryLocation(invLocation);
718
719 if ((!item.IsTakeable() && !item.IsActionTargetVisible()) || (m_Player && m_Player.IsInVehicle()) || invLocation.GetType() != InventoryLocationType.GROUND)
720 m_Hidden = true;
721 }
722 }
723 }
class GP5GasMask extends MaskBase ItemBase
InventoryLocationType
types of Inventory Location
Определения InventoryLocation.c:4
PlayerBase m_Player
Определения ActionTargetsCursor.c:64
ActionTarget m_Target
Определения ActionTargetsCursor.c:65
bool m_Hidden
Определения ActionTargetsCursor.c:87
ActionManagerClient m_AM
Определения ActionTargetsCursor.c:74
proto native int GetType()
returns type of InventoryLocation
override bool IsTakeable()
Определения BaseBuildingBase.c:909
class LOD Object

Перекрестные ссылки Class::CastTo(), InventoryLocation::GetType(), ItemBase::IsTakeable(), m_AM, m_Hidden, m_Player и m_Target.

Используется в Update().