示例#1
0
        bool canGrabArrowFromKnock()
        {
            // Setting override
            if (!CanGrabArrowFromKnock)
            {
                return(false);
            }

            // Use opposite hand of what's holding the bow
            ControllerHand hand = bowGrabbable.GetControllerHand(bowGrabbable.GetPrimaryGrabber()) == ControllerHand.Left ? ControllerHand.Right : ControllerHand.Left;

            return(CanGrabArrow && getTriggerInput(hand) > 0.75f && !holdingArrow);
        }