16 {
17 if (!target.GetObject())
18 return false;
19
21 if (!lock)
22 return false;
23
24 EntityAI parent = lock.GetHierarchyParent();
25 if (!parent)
26 return false;
27
28 int facingSide = lock.GetLockSideByComponentIndex(target.GetComponentIndex());
29 if (facingSide == -1)
30 return false;
31
32 if (parent.CanUseConstruction())
33 {
34 ConstructionActionData constructionActionData = player.GetConstructionActionData();
37 return true;
38 }
39
40 return false;
41 }
void SetCombinationLock(CombinationLock combination_lock)
void SetCombinationLockSide(int lockSide)