29 {
30 if (player.IsPlacingLocal())
31 {
32 return false;
33 }
34
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;
43
44 if (
GetGame().IsSurfaceDigable(surfaceType))
45 {
46 return true;
47 }
48 }
49
50 return false;
51 }
proto void SurfaceUnderObject(notnull Object object, out string type, out int liquidType)
proto native CGame GetGame()