759 {
760 if( ForceActionCheck(player) )
761 {
763 return;
764 }
765
766
768 array<ActionBase_Basic> possible_actions;
769 ActionBase action;
770 int i;
771
773 if ( player && !player.IsInVehicle() )
774 {
775 Clothing headgear = Clothing.Cast(player.FindAttachmentBySlotName("Headgear"));
776 Clothing eyewear = Clothing.Cast(player.FindAttachmentBySlotName("Eyewear"));
777
778
780 {
783 }
785 {
788 }
789 else
790 ClearForcedTarget();
791 }
792 else if ( player && player.IsInVehicle() )
793 {
794 HumanCommandVehicle vehCommand = player.GetCommand_Vehicle();
795 if( vehCommand )
796 {
798 if( trans )
799 {
802 }
803 }
804
806 ClearForcedTarget();
807 }
808
809 target = m_ForcedTarget;
811
812 if(target && target.GetObject())
813 {
814 target.GetObject().GetActions(this.
Type(), possible_actions);
815 if(possible_actions)
816 {
817 for (i = 0; i < possible_actions.Count(); i++)
818 {
819 action = ActionBase.Cast(possible_actions.Get(i));
820 if ( action.
Can(player, target,
m_MainItem, action_condition_mask) )
821 {
823 return;
824 }
825 }
826 }
827 }
828 }
class ActionTargets ActionTarget
class BaitData m_MainItem
bool Can(PlayerBase player, ActionTarget target, ItemBase item, int condition_mask)
override ItemBase GetLightSourceItem()
proto native Transport GetTransport()