Pick up Object and destroy and a explosion

1. Make moveable

2. Change collision

to OverlapOnlyPawn

3. Copy Code.

4. Make object to BP

5. Paste code in.

6. Play

Code below-------------------------
Begin Object Class=K2Node_Event Name="K2Node_Event_245"
   Begin Object Class=EdGraphPin Name="EdGraphPin_23962"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_23961"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_23960"
   End Object
   Begin Object Name="EdGraphPin_23962"
      PinName="OtherActor"
      PinToolTip="Other Actor\nActor Reference"
      Direction=EGPD_Output
      PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/Engine.Actor')
      LinkedTo(0)=EdGraphPin'K2Node_DynamicCast_450.EdGraphPin_25124'
   End Object
   Begin Object Name="EdGraphPin_23961"
      PinName="then"
      Direction=EGPD_Output
      PinType=(PinCategory="exec")
      LinkedTo(0)=EdGraphPin'K2Node_CallFunction_2739.EdGraphPin_23966'
   End Object
   Begin Object Name="EdGraphPin_23960"
      PinName="OutputDelegate"
      Direction=EGPD_Output
      PinType=(PinCategory="delegate",PinSubCategoryMemberReference=(MemberParent=Class'/Script/Engine.Actor',MemberName="ReceiveActorBeginOverlap"))
   End Object
   EventReference=(MemberParent=Class'/Script/Engine.Actor',MemberName="ReceiveActorBeginOverlap")
   bOverrideFunction=True
   Pins(0)=EdGraphPin'EdGraphPin_23960'
   Pins(1)=EdGraphPin'EdGraphPin_23961'
   Pins(2)=EdGraphPin'EdGraphPin_23962'
   NodePosX=1184
   NodePosY=224
   NodeGuid=546976C34659568DA607FA8BAEB0A310
End Object
Begin Object Class=K2Node_CallFunction Name="K2Node_CallFunction_2738"
   Begin Object Class=EdGraphPin Name="EdGraphPin_23965"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_23964"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_23963"
   End Object
   Begin Object Name="EdGraphPin_23965"
      PinName="self"
      PinFriendlyName="Target"
      PinToolTip="Target\nActor Reference"
      PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/Engine.Actor')
   End Object
   Begin Object Name="EdGraphPin_23964"
      PinName="then"
      Direction=EGPD_Output
      PinType=(PinCategory="exec")
   End Object
   Begin Object Name="EdGraphPin_23963"
      PinName="execute"
      PinType=(PinCategory="exec")
      LinkedTo(0)=EdGraphPin'K2Node_VariableSet_120.EdGraphPin_25130'
   End Object
   FunctionReference=(MemberName="K2_DestroyActor",bSelfContext=True)
   Pins(0)=EdGraphPin'EdGraphPin_23963'
   Pins(1)=EdGraphPin'EdGraphPin_23964'
   Pins(2)=EdGraphPin'EdGraphPin_23965'
   NodePosX=2528
   NodePosY=208
   NodeGuid=99E0635D40CB527256592D99B23E52CB
End Object
Begin Object Class=K2Node_CallFunction Name="K2Node_CallFunction_2739"
   Begin Object Class=EdGraphPin Name="EdGraphPin_23974"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_23973"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_23972"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_23971"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_23970"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_23969"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_23968"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_23967"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_23966"
   End Object
   Begin Object Name="EdGraphPin_23974"
      PinName="ReturnValue"
      PinToolTip="Return Value\nParticle System Component Reference"
      Direction=EGPD_Output
      PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/Engine.ParticleSystemComponent')
   End Object
   Begin Object Name="EdGraphPin_23973"
      PinName="bAutoDestroy"
      PinToolTip="Auto Destroy\nBoolean\n\nWhether the component will automatically be destroyed when the particle system completes playing or whether it can be reactivated"
      PinType=(PinCategory="bool")
      DefaultValue="true"
      AutogeneratedDefaultValue="true"
   End Object
   Begin Object Name="EdGraphPin_23972"
      PinName="Rotation"
      PinToolTip="Rotation\nRotator \n\nrotation to place the effect in world space"
      PinType=(PinCategory="struct",PinSubCategoryObject=ScriptStruct'/Script/CoreUObject.Rotator')
      DefaultValue="0, 0, 0"
      AutogeneratedDefaultValue="0, 0, 0"
   End Object
   Begin Object Name="EdGraphPin_23971"
      PinName="Location"
      PinToolTip="Location\nVector \n\nlocation to place the effect in world space"
      PinType=(PinCategory="struct",PinSubCategoryObject=ScriptStruct'/Script/CoreUObject.Vector')
      DefaultValue="0, 0, 0"
      AutogeneratedDefaultValue="0, 0, 0"
      LinkedTo(0)=EdGraphPin'K2Node_CallFunction_2740.EdGraphPin_24456'
   End Object
   Begin Object Name="EdGraphPin_23970"
      PinName="EmitterTemplate"
      PinToolTip="Emitter Template\nParticle System Reference\n\nparticle system to create"
      PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/Engine.ParticleSystem')
      DefaultObject=ParticleSystem'/Game/StarterContent/Particles/P_Explosion.P_Explosion'
   End Object
   Begin Object Name="EdGraphPin_23969"
      PinName="WorldContextObject"
      PinToolTip="World Context Object\nObject Reference\n\nObject that we can obtain a world context from"
      PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/CoreUObject.Object')
      bHidden=True
   End Object
   Begin Object Name="EdGraphPin_23968"
      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_23967"
      PinName="then"
      Direction=EGPD_Output
      PinType=(PinCategory="exec")
      LinkedTo(0)=EdGraphPin'K2Node_DynamicCast_450.EdGraphPin_25121'
   End Object
   Begin Object Name="EdGraphPin_23966"
      PinName="execute"
      PinType=(PinCategory="exec")
      LinkedTo(0)=EdGraphPin'K2Node_Event_245.EdGraphPin_23961'
   End Object
   FunctionReference=(MemberParent=Class'/Script/Engine.GameplayStatics',MemberName="SpawnEmitterAtLocation")
   Pins(0)=EdGraphPin'EdGraphPin_23966'
   Pins(1)=EdGraphPin'EdGraphPin_23967'
   Pins(2)=EdGraphPin'EdGraphPin_23968'
   Pins(3)=EdGraphPin'EdGraphPin_23969'
   Pins(4)=EdGraphPin'EdGraphPin_23970'
   Pins(5)=EdGraphPin'EdGraphPin_23971'
   Pins(6)=EdGraphPin'EdGraphPin_23972'
   Pins(7)=EdGraphPin'EdGraphPin_23973'
   Pins(8)=EdGraphPin'EdGraphPin_23974'
   NodePosX=1552
   NodePosY=224
   NodeGuid=80C90D6841777843EEECD7959B7245F5
End Object
Begin Object Class=K2Node_CallFunction Name="K2Node_CallFunction_2740"
   Begin Object Class=EdGraphPin Name="EdGraphPin_24456"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_24455"
   End Object
   Begin Object Name="EdGraphPin_24456"
      PinName="ReturnValue"
      PinToolTip="Return Value\nVector "
      Direction=EGPD_Output
      PinType=(PinCategory="struct",PinSubCategoryObject=ScriptStruct'/Script/CoreUObject.Vector')
      AutogeneratedDefaultValue="0, 0, 0"
      LinkedTo(0)=EdGraphPin'K2Node_CallFunction_2739.EdGraphPin_23971'
   End Object
   Begin Object Name="EdGraphPin_24455"
      PinName="self"
      PinFriendlyName="Target"
      PinToolTip="Target\nActor Reference"
      PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/Engine.Actor')
   End Object
   bIsPureFunc=True
   bIsConstFunc=True
   FunctionReference=(MemberName="K2_GetActorLocation",bSelfContext=True)
   Pins(0)=EdGraphPin'EdGraphPin_24455'
   Pins(1)=EdGraphPin'EdGraphPin_24456'
   NodePosX=1184
   NodePosY=400
   NodeGuid=034D96704457E1A4C28C6D901CD8181F
End Object
Begin Object Class=K2Node_DynamicCast Name="K2Node_DynamicCast_450"
   Begin Object Class=EdGraphPin Name="EdGraphPin_25126"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_25125"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_25124"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_25123"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_25122"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_25121"
   End Object
   Begin Object Name="EdGraphPin_25126"
      PinName="bSuccess"
      Direction=EGPD_Output
      PinType=(PinCategory="bool")
      bHidden=True
   End Object
   Begin Object Name="EdGraphPin_25125"
      PinName="AsThird Person Character"
      Direction=EGPD_Output
      PinType=(PinCategory="object",PinSubCategoryObject=BlueprintGeneratedClass'/Game/ThirdPersonBP/Blueprints/ThirdPersonCharacter.ThirdPersonCharacter_C')
      LinkedTo(0)=EdGraphPin'K2Node_VariableGet_180.EdGraphPin_25128'
   End Object
   Begin Object Name="EdGraphPin_25124"
      PinName="Object"
      PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/CoreUObject.Object')
      LinkedTo(0)=EdGraphPin'K2Node_Event_245.EdGraphPin_23962'
   End Object
   Begin Object Name="EdGraphPin_25123"
      PinName="CastFailed"
      Direction=EGPD_Output
      PinType=(PinCategory="exec")
   End Object
   Begin Object Name="EdGraphPin_25122"
      PinName="then"
      Direction=EGPD_Output
      PinType=(PinCategory="exec")
      LinkedTo(0)=EdGraphPin'K2Node_VariableSet_120.EdGraphPin_25129'
   End Object
   Begin Object Name="EdGraphPin_25121"
      PinName="execute"
      PinType=(PinCategory="exec")
      LinkedTo(0)=EdGraphPin'K2Node_CallFunction_2739.EdGraphPin_23967'
   End Object
   TargetType=BlueprintGeneratedClass'/Game/ThirdPersonBP/Blueprints/ThirdPersonCharacter.ThirdPersonCharacter_C'
   Pins(0)=EdGraphPin'EdGraphPin_25121'
   Pins(1)=EdGraphPin'EdGraphPin_25122'
   Pins(2)=EdGraphPin'EdGraphPin_25123'
   Pins(3)=EdGraphPin'EdGraphPin_25124'
   Pins(4)=EdGraphPin'EdGraphPin_25125'
   Pins(5)=EdGraphPin'EdGraphPin_25126'
   NodePosX=1856
   NodePosY=208
   ErrorType=3
   ErrorMsg="Warning \'Third Person Character\' does not inherit from \'Particle System Component\' ( Cast To ThirdPersonCharacter  would always fail)."
   NodeGuid=5B31BDF34F3942FD6E19E69F01520056
End Object
Begin Object Class=K2Node_VariableGet Name="K2Node_VariableGet_180"
   Begin Object Class=EdGraphPin Name="EdGraphPin_25128"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_25127"
   End Object
   Begin Object Name="EdGraphPin_25128"
      PinName="self"
      PinFriendlyName="Target"
      PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/Engine.Character')
      LinkedTo(0)=EdGraphPin'K2Node_DynamicCast_450.EdGraphPin_25125'
   End Object
   Begin Object Name="EdGraphPin_25127"
      PinName="CharacterMovement"
      Direction=EGPD_Output
      PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/Engine.CharacterMovementComponent')
      LinkedTo(0)=EdGraphPin'K2Node_VariableSet_120.EdGraphPin_25132'
   End Object
   VariableReference=(MemberParent=Class'/Script/Engine.Character',MemberName="CharacterMovement")
   SelfContextInfo=NotSelfContext
   Pins(0)=EdGraphPin'EdGraphPin_25127'
   Pins(1)=EdGraphPin'EdGraphPin_25128'
   NodePosX=2048
   NodePosY=448
   NodeGuid=F8F43AFA473A5C3C5A8E198EE6660EB3
End Object
Begin Object Class=K2Node_VariableSet Name="K2Node_VariableSet_120"
   Begin Object Class=EdGraphPin Name="EdGraphPin_25133"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_25132"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_25131"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_25130"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_25129"
   End Object
   Begin Object Name="EdGraphPin_25133"
      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_25132"
      PinName="self"
      PinFriendlyName="Target"
      PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/Engine.CharacterMovementComponent')
      LinkedTo(0)=EdGraphPin'K2Node_VariableGet_180.EdGraphPin_25127'
   End Object
   Begin Object Name="EdGraphPin_25131"
      PinName="MaxWalkSpeed"
      PinType=(PinCategory="float")
      DefaultValue="1500"
      AutogeneratedDefaultValue="0.0"
   End Object
   Begin Object Name="EdGraphPin_25130"
      PinName="then"
      Direction=EGPD_Output
      PinType=(PinCategory="exec")
      LinkedTo(0)=EdGraphPin'K2Node_CallFunction_2738.EdGraphPin_23963'
   End Object
   Begin Object Name="EdGraphPin_25129"
      PinName="execute"
      PinType=(PinCategory="exec")
      LinkedTo(0)=EdGraphPin'K2Node_DynamicCast_450.EdGraphPin_25122'
   End Object
   VariableReference=(MemberParent=Class'/Script/Engine.CharacterMovementComponent',MemberName="MaxWalkSpeed")
   SelfContextInfo=NotSelfContext
   Pins(0)=EdGraphPin'EdGraphPin_25129'
   Pins(1)=EdGraphPin'EdGraphPin_25130'
   Pins(2)=EdGraphPin'EdGraphPin_25131'
   Pins(3)=EdGraphPin'EdGraphPin_25132'
   Pins(4)=EdGraphPin'EdGraphPin_25133'
   NodePosX=2256
   NodePosY=224
   NodeGuid=3B0ACBAC4410BA396C0EE99EB4D67971
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