861 {
862 if (ForceActionCheck(player))
863 {
865 return;
866 }
867
869 array<ActionBase_Basic> possibleActions;
870
872 if (player && player.IsInVehicle())
873 {
874 HumanCommandVehicle vehCommand = player.GetCommand_Vehicle();
875 if (vehCommand)
876 {
878 if (trans)
879 {
882 }
883 }
884
886 ClearForcedTarget();
887 }
888
889 target = m_ForcedTarget;
891
892 if(target && target.GetObject())
893 {
894 target.GetObject().GetActions(this.
Type(), possibleActions);
895 int possibleActionsCount = possibleActions.Count();
896 if(possibleActions)
897 {
898 for (int i = 0; i < possibleActionsCount; ++i)
899 {
901 if (action.Can(player, target,
m_MainItem, action_condition_mask))
902 {
904 return;
905 }
906 }
907 }
908 }
909 }
void ActionTarget(Object object, Object parent, int componentIndex, vector cursorHitPos, float utility, string surfaceName="")
class BaitData m_MainItem
proto native Transport GetTransport()