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

◆ ActionCondition()

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

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

51 {
52 EntityAI ent;
53 if (!Class.CastTo(ent,target.GetObject()))
54 return false;
55
56 if (player.IsPlacingLocal() || player.IsPlacingServer())
57 return false;
58
59 //Action not allowed if player has broken legs
60 if (player.GetBrokenLegs() == eBrokenLegs.BROKEN_LEGS)
61 return false;
62
63 if (!ent.CanUseConstruction() || !ent.CanUseConstructionBuild())
64 return false;
65
66 if ((!GetGame().IsDedicatedServer()))
67 {
68 if (SimplifiedCollisionInfoCheck(player,target,item))
69 {
70 return GatherInfoData(player,target,item);
71 }
72 }
73
74 return false;
75 }
class LogManager EntityAI
eBrokenLegs
Определения EBrokenLegs.c:2
bool GatherInfoData(PlayerBase player, ActionTarget target, ItemBase item)
Определения ActionPartInfo.c:82
bool SimplifiedCollisionInfoCheck(PlayerBase player, ActionTarget target, ItemBase item)
'ComplexBuildCollideCheckClient' not suitable for this, due to missing context (looks into wrong vari...
Определения ActionPartInfo.c:153
DayZGame GetGame()
Определения gameplay.c:636

Перекрестные ссылки ActionTarget(), Class::CastTo(), GatherInfoData(), GetGame() и SimplifiedCollisionInfoCheck().