Re-spawn When You Die Unreal

This is done in the Character of the blueprints.

Level Name is where player start again.


Here is the Code:

Begin Object Class=K2Node_Event Name="K2Node_Event_235"
   Begin Object Class=EdGraphPin Name="EdGraphPin_23215"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_23214"
   End Object
   Begin Object Name="EdGraphPin_23215"
      PinName="then"
      Direction=EGPD_Output
      PinType=(PinCategory="exec")
      LinkedTo(0)=EdGraphPin'K2Node_CallFunction_2807.EdGraphPin_23314'
   End Object
   Begin Object Name="EdGraphPin_23214"
      PinName="OutputDelegate"
      Direction=EGPD_Output
      PinType=(PinCategory="delegate",PinSubCategoryMemberReference=(MemberParent=Class'/Script/Engine.Actor',MemberName="ReceiveDestroyed"))
   End Object
   EventReference=(MemberParent=Class'/Script/Engine.Actor',MemberName="ReceiveDestroyed")
   bOverrideFunction=True
   Pins(0)=EdGraphPin'EdGraphPin_23214'
   Pins(1)=EdGraphPin'EdGraphPin_23215'
   NodePosY=592
   NodeGuid=D4893E5440F29324AF3DDAAFE42030BA
End Object
Begin Object Class=K2Node_CallFunction Name="K2Node_CallFunction_2807"
   Begin Object Class=EdGraphPin Name="EdGraphPin_23320"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_23319"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_23318"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_23317"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_23316"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_23315"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_23314"
   End Object
   Begin Object Name="EdGraphPin_23320"
      PinName="Options"
      PinToolTip="Options\nString\n\na string of options to use for the travel URL"
      PinType=(PinCategory="string")
      bAdvancedView=True
   End Object
   Begin Object Name="EdGraphPin_23319"
      PinName="bAbsolute"
      PinToolTip="Absolute\nBoolean\n\nif true options are reset, if false options are carried over from current level"
      PinType=(PinCategory="bool")
      DefaultValue="true"
      AutogeneratedDefaultValue="true"
      bAdvancedView=True
   End Object
   Begin Object Name="EdGraphPin_23318"
      PinName="LevelName"
      PinToolTip="Level Name\nName\n\nthe level to open"
      PinType=(PinCategory="name")
      DefaultValue="ThirdPersonExampleMap"
      AutogeneratedDefaultValue="None"
   End Object
   Begin Object Name="EdGraphPin_23317"
      PinName="WorldContextObject"
      PinToolTip="World Context Object\nObject Reference"
      PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/CoreUObject.Object')
      bHidden=True
   End Object
   Begin Object Name="EdGraphPin_23316"
      PinName="self"
      PinFriendlyName="Target"
      PinToolTip="Target\nGameplay Statics Reference"
      PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/Engine.GameplayStatics')
      DefaultObject=Default__GameplayStatics
      bHidden=True
   End Object
   Begin Object Name="EdGraphPin_23315"
      PinName="then"
      Direction=EGPD_Output
      PinType=(PinCategory="exec")
   End Object
   Begin Object Name="EdGraphPin_23314"
      PinName="execute"
      PinType=(PinCategory="exec")
      LinkedTo(0)=EdGraphPin'K2Node_Event_235.EdGraphPin_23215'
   End Object
   FunctionReference=(MemberParent=Class'/Script/Engine.GameplayStatics',MemberName="OpenLevel")
   Pins(0)=EdGraphPin'EdGraphPin_23314'
   Pins(1)=EdGraphPin'EdGraphPin_23315'
   Pins(2)=EdGraphPin'EdGraphPin_23316'
   Pins(3)=EdGraphPin'EdGraphPin_23317'
   Pins(4)=EdGraphPin'EdGraphPin_23318'
   Pins(5)=EdGraphPin'EdGraphPin_23319'
   Pins(6)=EdGraphPin'EdGraphPin_23320'
   NodePosX=240
   NodePosY=592
   NodeGuid=51A8F05145A3CA93B9694497B5E3639D
   AdvancedPinDisplay=Hidden
End Object




The Code for this


Begin Object Class=K2Node_Event Name="K2Node_Event_235"
   Begin Object Class=EdGraphPin Name="EdGraphPin_23215"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_23214"
   End Object
   Begin Object Name="EdGraphPin_23215"
      PinName="then"
      Direction=EGPD_Output
      PinType=(PinCategory="exec")
      LinkedTo(0)=EdGraphPin'K2Node_CallFunction_2807.EdGraphPin_23314'
   End Object
   Begin Object Name="EdGraphPin_23214"
      PinName="OutputDelegate"
      Direction=EGPD_Output
      PinType=(PinCategory="delegate",PinSubCategoryMemberReference=(MemberParent=Class'/Script/Engine.Actor',MemberName="ReceiveDestroyed"))
   End Object
   EventReference=(MemberParent=Class'/Script/Engine.Actor',MemberName="ReceiveDestroyed")
   bOverrideFunction=True
   Pins(0)=EdGraphPin'EdGraphPin_23214'
   Pins(1)=EdGraphPin'EdGraphPin_23215'
   NodePosY=592
   NodeGuid=D4893E5440F29324AF3DDAAFE42030BA
End Object
Begin Object Class=K2Node_CallFunction Name="K2Node_CallFunction_2807"
   Begin Object Class=EdGraphPin Name="EdGraphPin_23320"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_23319"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_23318"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_23317"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_23316"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_23315"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_23314"
   End Object
   Begin Object Name="EdGraphPin_23320"
      PinName="Options"
      PinToolTip="Options\nString\n\na string of options to use for the travel URL"
      PinType=(PinCategory="string")
      bAdvancedView=True
   End Object
   Begin Object Name="EdGraphPin_23319"
      PinName="bAbsolute"
      PinToolTip="Absolute\nBoolean\n\nif true options are reset, if false options are carried over from current level"
      PinType=(PinCategory="bool")
      DefaultValue="true"
      AutogeneratedDefaultValue="true"
      bAdvancedView=True
   End Object
   Begin Object Name="EdGraphPin_23318"
      PinName="LevelName"
      PinToolTip="Level Name\nName\n\nthe level to open"
      PinType=(PinCategory="name")
      DefaultValue="None"
      AutogeneratedDefaultValue="None"
      LinkedTo(0)=EdGraphPin'K2Node_VariableGet_141.EdGraphPin_24594'
   End Object
   Begin Object Name="EdGraphPin_23317"
      PinName="WorldContextObject"
      PinToolTip="World Context Object\nObject Reference"
      PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/CoreUObject.Object')
      bHidden=True
   End Object
   Begin Object Name="EdGraphPin_23316"
      PinName="self"
      PinFriendlyName="Target"
      PinToolTip="Target\nGameplay Statics Reference"
      PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/Engine.GameplayStatics')
      DefaultObject=Default__GameplayStatics
      bHidden=True
   End Object
   Begin Object Name="EdGraphPin_23315"
      PinName="then"
      Direction=EGPD_Output
      PinType=(PinCategory="exec")
   End Object
   Begin Object Name="EdGraphPin_23314"
      PinName="execute"
      PinType=(PinCategory="exec")
      LinkedTo(0)=EdGraphPin'K2Node_Event_235.EdGraphPin_23215'
   End Object
   FunctionReference=(MemberParent=Class'/Script/Engine.GameplayStatics',MemberName="OpenLevel")
   Pins(0)=EdGraphPin'EdGraphPin_23314'
   Pins(1)=EdGraphPin'EdGraphPin_23315'
   Pins(2)=EdGraphPin'EdGraphPin_23316'
   Pins(3)=EdGraphPin'EdGraphPin_23317'
   Pins(4)=EdGraphPin'EdGraphPin_23318'
   Pins(5)=EdGraphPin'EdGraphPin_23319'
   Pins(6)=EdGraphPin'EdGraphPin_23320'
   NodePosX=240
   NodePosY=592
   NodeGuid=51A8F05145A3CA93B9694497B5E3639D
   AdvancedPinDisplay=Hidden
End Object
Begin Object Class=K2Node_VariableGet Name="K2Node_VariableGet_141"
   Begin Object Class=EdGraphPin Name="EdGraphPin_24594"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_24595"
   End Object
   Begin Object Name="EdGraphPin_24594"
      PinName="GivenLevel"
      Direction=EGPD_Output
      PinType=(PinCategory="name")
      AutogeneratedDefaultValue="None"
      LinkedTo(0)=EdGraphPin'K2Node_CallFunction_2807.EdGraphPin_23318'
   End Object
   Begin Object Name="EdGraphPin_24595"
      PinName="self"
      PinFriendlyName="Target"
      PinType=(PinCategory="object",PinSubCategoryObject=BlueprintGeneratedClass'/Game/ThirdPersonBP/Blueprints/ThirdPersonCharacter.ThirdPersonCharacter_C')
      bHidden=True
   End Object
   VariableReference=(MemberName="GivenLevel",bSelfContext=True)
   Pins(0)=EdGraphPin'EdGraphPin_24594'
   Pins(1)=EdGraphPin'EdGraphPin_24595'
   NodePosX=16
   NodePosY=720
   NodeGuid=C9DB4EB643B61A70EE18B59A75B59576
End Object



Begin Object Class=K2Node_Event Name="K2Node_Event_193"
   Begin Object Class=EdGraphPin Name="EdGraphPin_25762"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_25761"
   End Object
   Begin Object Name="EdGraphPin_25762"
      PinName="then"
      Direction=EGPD_Output
      PinType=(PinCategory="exec")
      LinkedTo(0)=EdGraphPin'K2Node_DynamicCast_476.EdGraphPin_26209'
   End Object
   Begin Object Name="EdGraphPin_25761"
      PinName="OutputDelegate"
      Direction=EGPD_Output
      PinType=(PinCategory="delegate",PinSubCategoryMemberReference=(MemberParent=Class'/Script/Engine.Actor',MemberName="ReceiveBeginPlay"))
   End Object
   EventReference=(MemberParent=Class'/Script/Engine.Actor',MemberName="ReceiveBeginPlay")
   bOverrideFunction=True
   Pins(0)=EdGraphPin'EdGraphPin_25761'
   Pins(1)=EdGraphPin'EdGraphPin_25762'
   NodePosX=-176
   NodePosY=384
   NodeGuid=E859332D44ABFDE05684AB874FB65A2C
End Object
Begin Object Class=K2Node_DynamicCast Name="K2Node_DynamicCast_476"
   Begin Object Class=EdGraphPin Name="EdGraphPin_26214"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_26213"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_26212"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_26211"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_26210"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_26209"
   End Object
   Begin Object Name="EdGraphPin_26214"
      PinName="bSuccess"
      Direction=EGPD_Output
      PinType=(PinCategory="bool")
      bHidden=True
   End Object
   Begin Object Name="EdGraphPin_26213"
      PinName="AsThird Person Character"
      Direction=EGPD_Output
      PinType=(PinCategory="object",PinSubCategoryObject=BlueprintGeneratedClass'/Game/ThirdPersonBP/Blueprints/ThirdPersonCharacter.ThirdPersonCharacter_C')
      LinkedTo(0)=EdGraphPin'K2Node_VariableSet_126.EdGraphPin_26231'
   End Object
   Begin Object Name="EdGraphPin_26212"
      PinName="Object"
      PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/CoreUObject.Object')
      LinkedTo(0)=EdGraphPin'K2Node_CallFunction_3218.EdGraphPin_25967'
   End Object
   Begin Object Name="EdGraphPin_26211"
      PinName="CastFailed"
      Direction=EGPD_Output
      PinType=(PinCategory="exec")
   End Object
   Begin Object Name="EdGraphPin_26210"
      PinName="then"
      Direction=EGPD_Output
      PinType=(PinCategory="exec")
      LinkedTo(0)=EdGraphPin'K2Node_VariableSet_126.EdGraphPin_26227'
   End Object
   Begin Object Name="EdGraphPin_26209"
      PinName="execute"
      PinType=(PinCategory="exec")
      LinkedTo(0)=EdGraphPin'K2Node_Event_193.EdGraphPin_25762'
   End Object
   TargetType=BlueprintGeneratedClass'/Game/ThirdPersonBP/Blueprints/ThirdPersonCharacter.ThirdPersonCharacter_C'
   Pins(0)=EdGraphPin'EdGraphPin_26209'
   Pins(1)=EdGraphPin'EdGraphPin_26210'
   Pins(2)=EdGraphPin'EdGraphPin_26211'
   Pins(3)=EdGraphPin'EdGraphPin_26212'
   Pins(4)=EdGraphPin'EdGraphPin_26213'
   Pins(5)=EdGraphPin'EdGraphPin_26214'
   NodePosX=32
   NodePosY=384
   NodeGuid=7A6C697048C3F9DC4D6BB79CF192C255
End Object
Begin Object Class=K2Node_CallFunction Name="K2Node_CallFunction_3218"
   Begin Object Class=EdGraphPin Name="EdGraphPin_25967"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_25966"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_25965"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_25964"
   End Object
   Begin Object Name="EdGraphPin_25967"
      PinName="ReturnValue"
      PinToolTip="Return Value\nCharacter Reference"
      Direction=EGPD_Output
      PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/Engine.Character')
      LinkedTo(0)=EdGraphPin'K2Node_DynamicCast_476.EdGraphPin_26212'
   End Object
   Begin Object Name="EdGraphPin_25966"
      PinName="PlayerIndex"
      PinToolTip="Player Index\nInteger"
      PinType=(PinCategory="int")
      DefaultValue="0"
      AutogeneratedDefaultValue="0"
   End Object
   Begin Object Name="EdGraphPin_25965"
      PinName="WorldContextObject"
      PinToolTip="World Context Object\nObject Reference"
      PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/CoreUObject.Object')
      bHidden=True
   End Object
   Begin Object Name="EdGraphPin_25964"
      PinName="self"
      PinFriendlyName="Target"
      PinToolTip="Target\nGameplay Statics Reference"
      PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/Engine.GameplayStatics')
      DefaultObject=Default__GameplayStatics
      bHidden=True
   End Object
   bIsPureFunc=True
   FunctionReference=(MemberParent=Class'/Script/Engine.GameplayStatics',MemberName="GetPlayerCharacter")
   Pins(0)=EdGraphPin'EdGraphPin_25964'
   Pins(1)=EdGraphPin'EdGraphPin_25965'
   Pins(2)=EdGraphPin'EdGraphPin_25966'
   Pins(3)=EdGraphPin'EdGraphPin_25967'
   NodePosX=-256
   NodePosY=480
   NodeGuid=2E95408A4D15CAB6000E8B9660708C08
End Object
Begin Object Class=K2Node_VariableSet Name="K2Node_VariableSet_126"
   Begin Object Class=EdGraphPin Name="EdGraphPin_26231"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_26230"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_26229"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_26228"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_26227"
   End Object
   Begin Object Name="EdGraphPin_26231"
      PinName="self"
      PinFriendlyName="Target"
      PinType=(PinCategory="object",PinSubCategoryObject=BlueprintGeneratedClass'/Game/ThirdPersonBP/Blueprints/ThirdPersonCharacter.ThirdPersonCharacter_C')
      LinkedTo(0)=EdGraphPin'K2Node_DynamicCast_476.EdGraphPin_26213'
   End Object
   Begin Object Name="EdGraphPin_26230"
      PinName="Output_Get"
      PinToolTip="Retrieves the value of the variable, can use instead of a separate Get node"
      Direction=EGPD_Output
      PinType=(PinCategory="name")
      DefaultValue="None"
      AutogeneratedDefaultValue="None"
   End Object
   Begin Object Name="EdGraphPin_26229"
      PinName="GivenLevel"
      PinType=(PinCategory="name")
      DefaultValue="PoopMap"
      AutogeneratedDefaultValue="None"
   End Object
   Begin Object Name="EdGraphPin_26228"
      PinName="then"
      Direction=EGPD_Output
      PinType=(PinCategory="exec")
   End Object
   Begin Object Name="EdGraphPin_26227"
      PinName="execute"
      PinType=(PinCategory="exec")
      LinkedTo(0)=EdGraphPin'K2Node_DynamicCast_476.EdGraphPin_26210'
   End Object
   VariableReference=(MemberParent=BlueprintGeneratedClass'/Game/ThirdPersonBP/Blueprints/ThirdPersonCharacter.ThirdPersonCharacter_C',MemberName="GivenLevel",MemberGuid=985E13BE446E0C0BA0B9FA9F038EB929)
   SelfContextInfo=NotSelfContext
   Pins(0)=EdGraphPin'EdGraphPin_26227'
   Pins(1)=EdGraphPin'EdGraphPin_26228'
   Pins(2)=EdGraphPin'EdGraphPin_26229'
   Pins(3)=EdGraphPin'EdGraphPin_26230'
   Pins(4)=EdGraphPin'EdGraphPin_26231'
   NodePosX=336
   NodePosY=400
   ErrorType=1
   ErrorMsg="Warning Could not find a variable named \"GivenLevel\" in \'ThirdPersonCharacter_C\'.\nMake sure \'ThirdPersonCharacter_C\' has been compiled for  Set GivenLevel \nError The property associated with  Given Level  could not be found"
   NodeGuid=0C9EA2AB408720009B0A89939CF0C622
End Object


Comments