29 {
30 if (!target)
31 return false;
32
34 return false;
35
36 Building building;
37 if (Class.CastTo(building, target.GetObject()))
38 {
39 int doorIndex = building.GetDoorIndex(target.GetComponentIndex());
40 if (doorIndex != -1)
41 {
42 if (!
IsInReach(player, target, UAMaxDistances.DEFAULT))
43 return false;
44
46
47 }
48 }
49
50 return false;
51 }
bool IsInReach(PlayerBase player, ActionTarget target, float maxDistance=1.0)
bool IsBuilding(ActionTarget target)
bool CheckIfDoorIsLocked()