1102 {
1105 target =
new ActionTarget(targetItem, null, -1, vector.Zero, -1);
1106 bool hasTarget = targetItem != NULL;
1107
1108 if (mainItem)
1109 {
1110 array<ActionBase_Basic> actions;
1112 int i;
1113
1114
1115 mainItem.GetActions(DefaultActionInput, actions);
1116 if (actions)
1117 {
1118 for (i = 0; i < actions.Count(); i++)
1119 {
1121 if (picked_action && picked_action.Can(
m_Player,target, itemInHand) && picked_action.CanBePerformedFromInventory())
1122 {
1123 if (hasTarget == picked_action.HasTarget())
1124 return true;
1125 }
1126 }
1127 }
1128
1129
1130 mainItem.GetActions(InventoryOnlyActionInput, actions);
1131 if (actions)
1132 {
1133 for (i = 0; i < actions.Count(); i++)
1134 {
1136 if (picked_action && picked_action.Can(
m_Player,target, itemInHand))
1137 {
1138 if (hasTarget == picked_action.HasTarget())
1139 return true;
1140 }
1141 }
1142 }
1143 }
1144 return false;
1145 }
void ActionTarget(Object object, Object parent, int componentIndex, vector cursorHitPos, float utility, string surfaceName="")
class GP5GasMask extends MaskBase ItemBase