7 if (
Class.CastTo(shipCont, target.GetObject()))
11 return shipCont.IsDoorLocked(doorIndex);
16 override void OnFinishProgressServer( ActionData action_data )
20 if (shipCont && key && ((shipCont.GetLockCompatibilityType(shipCont.GetDoorIndex(action_data.m_Target.GetComponentIndex())) & key.GetKeyCompatibilityType()) == 0))
22 key.DestroyKeyServer();
27 MiscGameplayFunctions.DealAbsoluteDmg(action_data.m_MainItem,
APPLIED_DMG);
34 if (
Class.CastTo(building, target.GetObject()))
39 building.UnlockDoor(doorIndex,
false);
49 if (
Class.CastTo(shipCont, target.GetObject()))
51 string selectionName = shipCont.GetActionComponentName( target.GetComponentIndex() );
53 if (selectionName.Contains(
"_lock"))
54 return (selectionName.Substring(4,1).ToInt() - 1);