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

◆ ActionCondition()

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

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

28 {
29 if (player.IsPlacingLocal())
30 {
31 return false;
32 }
33
34 //Action not allowed if player has broken legs
35 if (player.GetBrokenLegs() == eBrokenLegs.BROKEN_LEGS)
36 {
37 return false;
38 }
39
40 Fireplace fireplaceTarget = Fireplace.Cast(target.GetObject());
41 if (fireplaceTarget)
42 {
43 if (fireplaceTarget.HasAshes() && !fireplaceTarget.IsBurning() && fireplaceTarget.IsEmpty())
44 {
45 int liquidType;
46 string surfaceType;
47 GetGame().SurfaceUnderObject(fireplaceTarget, surfaceType, liquidType);
48 if (GetGame().IsSurfaceDigable(surfaceType))
49 {
50 return true;
51 }
52 }
53 }
54
55 return false;
56 }
eBrokenLegs
Определения EBrokenLegs.c:2
proto void SurfaceUnderObject(notnull Object object, out string type, out int liquidType)
proto native CGame GetGame()

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