20 {
21 if (!target.GetObject())
22 return false;
23
25 if (!lock)
26 return false;
27
28 EntityAI parent = lock.GetHierarchyParent();
29 if (!parent)
30 return false;
31
32 int facingSide = lock.GetLockSideByComponentIndex(target.GetComponentIndex());
33 if (facingSide == -1)
34 return false;
35
36 if (parent.CanUseConstruction())
37 {
38 ConstructionActionData constructionActionData = player.GetConstructionActionData();
41 return true;
42 }
43
44 return false;
45 }
void SetCombinationLock(CombinationLock combination_lock)
void SetCombinationLockSide(int lockSide)