698 {
699 if (ForceActionCheck(player))
700 {
702 return;
703 }
704
706 array<ActionBase_Basic> possibleActions;
708 int i;
709
711 if (player && player.IsInVehicle())
712 {
713 HumanCommandVehicle vehCommand = player.GetCommand_Vehicle();
714 if (vehCommand)
715 {
717 if (trans)
718 {
721 }
722 }
723
725 {
726 ClearForcedTarget();
727 }
728 }
729
730 target = m_ForcedTarget;
732
733 if (target && target.GetObject())
734 {
735 target.GetObject().GetActions(this.
Type(), possibleActions);
736 if (possibleActions)
737 {
738 for (i = 0; i < possibleActions.Count(); i++)
739 {
740 action =
ActionBase.Cast(possibleActions.Get(i));
741 if (action.Can(player, target,
m_MainItem, action_condition_mask))
742 {
744 return;
745 }
746 }
747 }
748 }
749 }
void ActionTarget(Object object, Object parent, int componentIndex, vector cursorHitPos, float utility, string surfaceName="")
class BaitData m_MainItem
proto native Transport GetTransport()