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

◆ ActionCondition()

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

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

29 {
30 if (player.IsPlacingLocal())
31 {
32 return false;
33 }
34
35 EntityAI bodyEAI;
36 Class.CastTo(bodyEAI, target.GetObject());
37
38 if (bodyEAI && (bodyEAI.IsCorpse() || (!bodyEAI.IsAlive() && (bodyEAI.IsInherited(DayZCreature) || bodyEAI.IsInherited(Man)))) && !bodyEAI.GetParent())
39 {
40 int liquidType;
41 string surfaceType;
42 GetGame().SurfaceUnderObject(bodyEAI, surfaceType, liquidType);
43
44 if (GetGame().IsSurfaceDigable(surfaceType))
45 {
46 return true;
47 }
48 }
49
50 return false;
51 }
class LogManager EntityAI
proto void SurfaceUnderObject(notnull Object object, out string type, out int liquidType)
proto native CGame GetGame()

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