Basic When Shift Character Runs and let go Walk


Add this code to 3rd Person Blueprint.

--------------------Below-------------

Begin Object Class=K2Node_InputAction Name="K2Node_InputAction_19"
   Begin Object Class=EdGraphPin Name="EdGraphPin_22532"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_22531"
   End Object
   Begin Object Name="EdGraphPin_22532"
      PinName="Released"
      Direction=EGPD_Output
      PinType=(PinCategory="exec")
      LinkedTo(0)=EdGraphPin'K2Node_VariableSet_565.EdGraphPin_22535'
   End Object
   Begin Object Name="EdGraphPin_22531"
      PinName="Pressed"
      Direction=EGPD_Output
      PinType=(PinCategory="exec")
      LinkedTo(0)=EdGraphPin'K2Node_VariableSet_563.EdGraphPin_22632'
   End Object
   InputActionName="SprintingRun"
   Pins(0)=EdGraphPin'EdGraphPin_22531'
   Pins(1)=EdGraphPin'EdGraphPin_22532'
   NodePosX=96
   NodePosY=624
   NodeGuid=E84437D04A137B447D05CAB72ECE98A5
End Object
Begin Object Class=K2Node_VariableGet Name="K2Node_VariableGet_1259"
   Begin Object Class=EdGraphPin Name="EdGraphPin_22534"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_22533"
   End Object
   Begin Object Name="EdGraphPin_22534"
      PinName="self"
      PinFriendlyName="Target"
      PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/Engine.Character')
      bHidden=True
   End Object
   Begin Object Name="EdGraphPin_22533"
      PinName="CharacterMovement"
      Direction=EGPD_Output
      PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/Engine.CharacterMovementComponent')
      LinkedTo(0)=EdGraphPin'K2Node_VariableSet_565.EdGraphPin_22538'
      LinkedTo(1)=EdGraphPin'K2Node_VariableSet_563.EdGraphPin_22636'
   End Object
   VariableReference=(MemberName="CharacterMovement",bSelfContext=True)
   Pins(0)=EdGraphPin'EdGraphPin_22533'
   Pins(1)=EdGraphPin'EdGraphPin_22534'
   NodePosX=240
   NodePosY=832
   NodeGuid=A4D502D345BF65E6E6C24485F697E188
End Object
Begin Object Class=K2Node_VariableSet Name="K2Node_VariableSet_565"
   Begin Object Class=EdGraphPin Name="EdGraphPin_22539"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_22538"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_22537"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_22536"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_22535"
   End Object
   Begin Object Name="EdGraphPin_22539"
      PinName="Output_Get"
      PinToolTip="Retrieves the value of the variable, can use instead of a separate Get node"
      Direction=EGPD_Output
      PinType=(PinCategory="float")
      DefaultValue="0.0"
      AutogeneratedDefaultValue="0.0"
   End Object
   Begin Object Name="EdGraphPin_22538"
      PinName="self"
      PinFriendlyName="Target"
      PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/Engine.CharacterMovementComponent')
      LinkedTo(0)=EdGraphPin'K2Node_VariableGet_1259.EdGraphPin_22533'
   End Object
   Begin Object Name="EdGraphPin_22537"
      PinName="MaxWalkSpeed"
      PinType=(PinCategory="float")
      DefaultValue="0.0"
      AutogeneratedDefaultValue="0.0"
      LinkedTo(0)=EdGraphPin'K2Node_VariableGet_1300.EdGraphPin_23803'
   End Object
   Begin Object Name="EdGraphPin_22536"
      PinName="then"
      Direction=EGPD_Output
      PinType=(PinCategory="exec")
   End Object
   Begin Object Name="EdGraphPin_22535"
      PinName="execute"
      PinType=(PinCategory="exec")
      LinkedTo(0)=EdGraphPin'K2Node_InputAction_19.EdGraphPin_22532'
   End Object
   VariableReference=(MemberParent=Class'/Script/Engine.CharacterMovementComponent',MemberName="MaxWalkSpeed")
   SelfContextInfo=NotSelfContext
   Pins(0)=EdGraphPin'EdGraphPin_22535'
   Pins(1)=EdGraphPin'EdGraphPin_22536'
   Pins(2)=EdGraphPin'EdGraphPin_22537'
   Pins(3)=EdGraphPin'EdGraphPin_22538'
   Pins(4)=EdGraphPin'EdGraphPin_22539'
   NodePosX=544
   NodePosY=816
   NodeGuid=3B57E791429E863D74B7A98BA6009398
End Object
Begin Object Class=K2Node_VariableSet Name="K2Node_VariableSet_563"
   Begin Object Class=EdGraphPin Name="EdGraphPin_22636"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_22635"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_22634"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_22633"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_22632"
   End Object
   Begin Object Name="EdGraphPin_22636"
      PinName="self"
      PinFriendlyName="Target"
      PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/Engine.CharacterMovementComponent')
      LinkedTo(0)=EdGraphPin'K2Node_VariableGet_1259.EdGraphPin_22533'
   End Object
   Begin Object Name="EdGraphPin_22635"
      PinName="Output_Get"
      PinToolTip="Retrieves the value of the variable, can use instead of a separate Get node"
      Direction=EGPD_Output
      PinType=(PinCategory="float")
      DefaultValue="0.0"
      AutogeneratedDefaultValue="0.0"
   End Object
   Begin Object Name="EdGraphPin_22634"
      PinName="MaxWalkSpeed"
      PinType=(PinCategory="float")
      DefaultValue="0.0"
      AutogeneratedDefaultValue="0.0"
      LinkedTo(0)=EdGraphPin'K2Node_VariableGet_1298.EdGraphPin_23737'
   End Object
   Begin Object Name="EdGraphPin_22633"
      PinName="then"
      Direction=EGPD_Output
      PinType=(PinCategory="exec")
   End Object
   Begin Object Name="EdGraphPin_22632"
      PinName="execute"
      PinType=(PinCategory="exec")
      LinkedTo(0)=EdGraphPin'K2Node_InputAction_19.EdGraphPin_22531'
   End Object
   VariableReference=(MemberParent=Class'/Script/Engine.CharacterMovementComponent',MemberName="MaxWalkSpeed")
   SelfContextInfo=NotSelfContext
   Pins(0)=EdGraphPin'EdGraphPin_22632'
   Pins(1)=EdGraphPin'EdGraphPin_22633'
   Pins(2)=EdGraphPin'EdGraphPin_22634'
   Pins(3)=EdGraphPin'EdGraphPin_22635'
   Pins(4)=EdGraphPin'EdGraphPin_22636'
   NodePosX=512
   NodePosY=608
   NodeGuid=7571DC9F449311A84C961893649DD36F
End Object
Begin Object Class=K2Node_VariableGet Name="K2Node_VariableGet_1298"
   Begin Object Class=EdGraphPin Name="EdGraphPin_23738"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_23737"
   End Object
   Begin Object Name="EdGraphPin_23738"
      PinName="self"
      PinFriendlyName="Target"
      PinType=(PinCategory="object",PinSubCategoryObject=BlueprintGeneratedClass'/Game/ThirdPersonBP/Blueprints/ThirdPersonCharacter.ThirdPersonCharacter_C')
      bHidden=True
   End Object
   Begin Object Name="EdGraphPin_23737"
      PinName="SprintSpeed"
      Direction=EGPD_Output
      PinType=(PinCategory="float")
      AutogeneratedDefaultValue="0.0"
      LinkedTo(0)=EdGraphPin'K2Node_VariableSet_563.EdGraphPin_22634'
   End Object
   VariableReference=(MemberName="SprintSpeed",bSelfContext=True)
   Pins(0)=EdGraphPin'EdGraphPin_23737'
   Pins(1)=EdGraphPin'EdGraphPin_23738'
   NodePosX=320
   NodePosY=656
   NodeGuid=0EC6635F4D91F4227090A0B763264A92
End Object
Begin Object Class=K2Node_VariableGet Name="K2Node_VariableGet_1300"
   Begin Object Class=EdGraphPin Name="EdGraphPin_23804"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_23803"
   End Object
   Begin Object Name="EdGraphPin_23804"
      PinName="self"
      PinFriendlyName="Target"
      PinType=(PinCategory="object",PinSubCategoryObject=BlueprintGeneratedClass'/Game/ThirdPersonBP/Blueprints/ThirdPersonCharacter.ThirdPersonCharacter_C')
      bHidden=True
   End Object
   Begin Object Name="EdGraphPin_23803"
      PinName="WalkSpeed"
      Direction=EGPD_Output
      PinType=(PinCategory="float")
      AutogeneratedDefaultValue="0.0"
      LinkedTo(0)=EdGraphPin'K2Node_VariableSet_565.EdGraphPin_22537'
   End Object
   VariableReference=(MemberName="WalkSpeed",bSelfContext=True)
   Pins(0)=EdGraphPin'EdGraphPin_23803'
   Pins(1)=EdGraphPin'EdGraphPin_23804'
   NodePosX=208
   NodePosY=960
   NodeGuid=FA96131B4DC15B3CEF91C5A62E1E6615
End Object

Share on Google Plus

About knut

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment

0 comments:

Post a Comment