11 return shipCont.IsDoorLocked(doorIndex);
20 if (shipCont && key && ((shipCont.GetLockCompatibilityType(shipCont.GetDoorIndex(action_data.m_Target.GetComponentIndex())) & key.GetKeyCompatibilityType()) == 0))
27 MiscGameplayFunctions.DealAbsoluteDmg(action_data.m_MainItem,
APPLIED_DMG);
39 building.UnlockDoor(doorIndex,
false);
51 string selectionName = shipCont.GetActionComponentName( target.GetComponentIndex() );
class ActionTargets ActionTarget
int TranslateLockSelectionIntoDoorIdx(ActionTarget target)
Returns door idx.
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
void UnlockDoor(ActionTarget target)
override void OnFinishProgressServer(ActionData action_data)
Super root of all classes in Enforce script.
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
proto native int ToInt()
Converts string to integer.
bool Contains(string sample)
Returns true if sample is substring of string.
proto string Substring(int start, int len)
Substring of 'str' from 'start' position 'len' number of characters.