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

◆ ActionCondition()

override bool ActionAttachOnProxy::ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate

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

17 {
18 if (!GetGame().IsDedicatedServer() && item)
19 m_Text = "#attach " + item.GetDisplayName();
20
21 EntityAI targetEntity = EntityAI.Cast(target.GetObject());
22 if (targetEntity)
23 {
24 if (CanAttachToProxy(player, targetEntity, item, target.GetComponentIndex()))
25 return true;
26 }
27
28 EntityAI targetParentEntity = EntityAI.Cast(target.GetParent());
29 if (targetParentEntity)
30 {
31 if (CanAttachToProxy(player, targetParentEntity, item, target.GetComponentIndex()))
32 return true;
33 }
34
35 return false;
36 }
class LogManager EntityAI
string m_Text
Определения ActionBase.c:57
bool CanAttachToProxy(PlayerBase player, EntityAI targetEntity, ItemBase item, int componentIndex=-1)
Определения ActionAttachOnProxy.c:38
DayZGame GetGame()
Определения gameplay.c:636

Перекрестные ссылки ActionTarget(), CanAttachToProxy(), GetGame() и m_Text.