Light Color Changes random every .5


 Tutorial based on
https://youtu.be/BeztKC4cO18



Code Below.


--------------------

Begin Object Class=K2Node_Event Name="K2Node_Event_316"
   Begin Object Class=EdGraphPin Name="EdGraphPin_25740"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_25739"
   End Object
   Begin Object Name="EdGraphPin_25740"
      PinName="then"
      Direction=EGPD_Output
      PinType=(PinCategory="exec")
      LinkedTo(0)=EdGraphPin'K2Node_CallFunction_2943.EdGraphPin_26284'
   End Object
   Begin Object Name="EdGraphPin_25739"
      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_25739'
   Pins(1)=EdGraphPin'EdGraphPin_25740'
   NodePosX=-64
   NodePosY=-624
   bCommentBubblePinned=True
   NodeGuid=9007020548BDE06B77FCF4B295E02828
End Object
Begin Object Class=K2Node_CallFunction Name="K2Node_CallFunction_2876"
   Begin Object Class=EdGraphPin Name="EdGraphPin_25815"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_25814"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_25813"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_25812"
   End Object
   Begin Object Name="EdGraphPin_25815"
      PinName="NewLightColor"
      PinToolTip="New Light Color\nLinear Color Structure"
      PinType=(PinCategory="struct",PinSubCategoryObject=ScriptStruct'/Script/CoreUObject.LinearColor')
      LinkedTo(0)=EdGraphPin'K2Node_CallFunction_2878.EdGraphPin_25822'
   End Object
   Begin Object Name="EdGraphPin_25814"
      PinName="self"
      PinFriendlyName="Target"
      PinToolTip="Target\nLight Component Reference"
      PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/Engine.LightComponent')
      LinkedTo(0)=EdGraphPin'K2Node_VariableGet_1346.EdGraphPin_25816'
   End Object
   Begin Object Name="EdGraphPin_25813"
      PinName="then"
      Direction=EGPD_Output
      PinType=(PinCategory="exec")
   End Object
   Begin Object Name="EdGraphPin_25812"
      PinName="execute"
      PinType=(PinCategory="exec")
      LinkedTo(0)=EdGraphPin'K2Node_CustomEvent_33.EdGraphPin_26292'
   End Object
   FunctionReference=(MemberParent=Class'/Script/Engine.LightComponent',MemberName="SetLightColor")
   Pins(0)=EdGraphPin'EdGraphPin_25812'
   Pins(1)=EdGraphPin'EdGraphPin_25813'
   Pins(2)=EdGraphPin'EdGraphPin_25814'
   Pins(3)=EdGraphPin'EdGraphPin_25815'
   NodePosX=512
   NodePosY=-736
   NodeGuid=936E887D425B575180C9389658CDC80E
End Object
Begin Object Class=K2Node_VariableGet Name="K2Node_VariableGet_1346"
   Begin Object Class=EdGraphPin Name="EdGraphPin_25817"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_25816"
   End Object
   Begin Object Name="EdGraphPin_25817"
      PinName="self"
      PinFriendlyName="Target"
      PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/Engine.Light')
      bHidden=True
   End Object
   Begin Object Name="EdGraphPin_25816"
      PinName="LightComponent"
      Direction=EGPD_Output
      PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/Engine.LightComponent')
      LinkedTo(0)=EdGraphPin'K2Node_CallFunction_2876.EdGraphPin_25814'
   End Object
   VariableReference=(MemberName="LightComponent",bSelfContext=True)
   Pins(0)=EdGraphPin'EdGraphPin_25816'
   Pins(1)=EdGraphPin'EdGraphPin_25817'
   NodePosX=288
   NodePosY=-400
   NodeGuid=CF6C92A6489023ABB20FC8AB799158BA
End Object
Begin Object Class=K2Node_CallFunction Name="K2Node_CallFunction_2877"
   Begin Object Class=EdGraphPin Name="EdGraphPin_25819"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_25818"
   End Object
   Begin Object Name="EdGraphPin_25819"
      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_2878.EdGraphPin_25821'
   End Object
   Begin Object Name="EdGraphPin_25818"
      PinName="self"
      PinFriendlyName="Target"
      PinToolTip="Target\nKismet Math Library Reference"
      PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/Engine.KismetMathLibrary')
      DefaultObject=Default__KismetMathLibrary
      bHidden=True
   End Object
   bIsPureFunc=True
   FunctionReference=(MemberParent=Class'/Script/Engine.KismetMathLibrary',MemberName="RandomUnitVector")
   Pins(0)=EdGraphPin'EdGraphPin_25818'
   Pins(1)=EdGraphPin'EdGraphPin_25819'
   NodePosX=160
   NodePosY=-304
   NodeGuid=407838FD411FA5036220D790D37BE505
End Object
Begin Object Class=K2Node_CallFunction Name="K2Node_CallFunction_2878"
   Begin Object Class=EdGraphPin Name="EdGraphPin_25822"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_25821"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_25820"
   End Object
   Begin Object Name="EdGraphPin_25822"
      PinName="ReturnValue"
      PinToolTip="Return Value\nLinear Color Structure"
      Direction=EGPD_Output
      PinType=(PinCategory="struct",PinSubCategoryObject=ScriptStruct'/Script/CoreUObject.LinearColor')
      LinkedTo(0)=EdGraphPin'K2Node_CallFunction_2876.EdGraphPin_25815'
   End Object
   Begin Object Name="EdGraphPin_25821"
      PinName="InVec"
      PinToolTip="In Vec\nVector "
      PinType=(PinCategory="struct",PinSubCategoryObject=ScriptStruct'/Script/CoreUObject.Vector')
      DefaultValue="0, 0, 0"
      AutogeneratedDefaultValue="0, 0, 0"
      LinkedTo(0)=EdGraphPin'K2Node_CallFunction_2877.EdGraphPin_25819'
   End Object
   Begin Object Name="EdGraphPin_25820"
      PinName="self"
      PinFriendlyName="Target"
      PinToolTip="Target\nKismet Math Library Reference"
      PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/Engine.KismetMathLibrary')
      DefaultObject=Default__KismetMathLibrary
      bHidden=True
   End Object
   bIsPureFunc=True
   FunctionReference=(MemberParent=Class'/Script/Engine.KismetMathLibrary',MemberName="Conv_VectorToLinearColor")
   Pins(0)=EdGraphPin'EdGraphPin_25820'
   Pins(1)=EdGraphPin'EdGraphPin_25821'
   Pins(2)=EdGraphPin'EdGraphPin_25822'
   NodePosX=416
   NodePosY=-304
   NodeGuid=656DCE2D44C1639B6BBDC48AA7E4F8EB
End Object
Begin Object Class=K2Node_CallFunction Name="K2Node_CallFunction_2943"
   Begin Object Class=EdGraphPin Name="EdGraphPin_26290"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_26289"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_26288"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_26287"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_26286"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_26285"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_26284"
   End Object
   Begin Object Name="EdGraphPin_26290"
      PinName="bLooping"
      PinToolTip="Looping\nBoolean\n\ntrue to keep executing the delegate every Time seconds, false to execute delegate only once."
      PinType=(PinCategory="bool")
      DefaultValue="true"
      AutogeneratedDefaultValue="false"
   End Object
   Begin Object Name="EdGraphPin_26289"
      PinName="Time"
      PinToolTip="Time\nFloat\n\nHow long to wait before executing the delegate, in seconds. Setting a timer to <= 0 seconds will clear it if it is set."
      PinType=(PinCategory="float")
      DefaultValue=".5"
      AutogeneratedDefaultValue="0.0"
   End Object
   Begin Object Name="EdGraphPin_26288"
      PinName="FunctionName"
      PinToolTip="Function Name\nString\n\nDelegate function name. Can be a K2 function or a Custom Event."
      PinType=(PinCategory="string")
      DefaultValue="RC_Name"
   End Object
   Begin Object Name="EdGraphPin_26287"
      PinName="Object"
      PinToolTip="Object\nObject Reference\n\nObject that implements the delegate function. Defaults to self (this blueprint)"
      PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/CoreUObject.Object')
   End Object
   Begin Object Name="EdGraphPin_26286"
      PinName="self"
      PinFriendlyName="Target"
      PinToolTip="Target\nKismet System Library Reference"
      PinType=(PinCategory="object",PinSubCategoryObject=Class'/Script/Engine.KismetSystemLibrary')
      DefaultObject=Default__KismetSystemLibrary
      bHidden=True
   End Object
   Begin Object Name="EdGraphPin_26285"
      PinName="then"
      Direction=EGPD_Output
      PinType=(PinCategory="exec")
   End Object
   Begin Object Name="EdGraphPin_26284"
      PinName="execute"
      PinType=(PinCategory="exec")
      LinkedTo(0)=EdGraphPin'K2Node_Event_316.EdGraphPin_25740'
   End Object
   FunctionReference=(MemberParent=Class'/Script/Engine.KismetSystemLibrary',MemberName="K2_SetTimer")
   Pins(0)=EdGraphPin'EdGraphPin_26284'
   Pins(1)=EdGraphPin'EdGraphPin_26285'
   Pins(2)=EdGraphPin'EdGraphPin_26286'
   Pins(3)=EdGraphPin'EdGraphPin_26287'
   Pins(4)=EdGraphPin'EdGraphPin_26288'
   Pins(5)=EdGraphPin'EdGraphPin_26289'
   Pins(6)=EdGraphPin'EdGraphPin_26290'
   NodePosX=176
   NodePosY=-624
   NodeGuid=FA99E24F492972A9053A1FBBB8B7C2E2
End Object
Begin Object Class=K2Node_CustomEvent Name="K2Node_CustomEvent_33"
   Begin Object Class=EdGraphPin Name="EdGraphPin_26292"
   End Object
   Begin Object Class=EdGraphPin Name="EdGraphPin_26291"
   End Object
   Begin Object Name="EdGraphPin_26292"
      PinName="then"
      Direction=EGPD_Output
      PinType=(PinCategory="exec")
      LinkedTo(0)=EdGraphPin'K2Node_CallFunction_2876.EdGraphPin_25812'
   End Object
   Begin Object Name="EdGraphPin_26291"
      PinName="OutputDelegate"
      Direction=EGPD_Output
      PinType=(PinCategory="delegate",PinSubCategoryMemberReference=(MemberParent=BlueprintGeneratedClass'/Game/Knut_BluePrints/PointLight2_Blueprint.PointLight2_Blueprint_C',MemberName="RC_Name",MemberGuid=610593AF4F09B1B57791408207460A3B))
   End Object
   CustomFunctionName="RC_Name"
   Pins(0)=EdGraphPin'EdGraphPin_26291'
   Pins(1)=EdGraphPin'EdGraphPin_26292'
   NodePosX=112
   NodePosY=-736
   NodeGuid=610593AF4F09B1B57791408207460A3B
End Object
Begin Object Class=EdGraphNode_Comment Name="EdGraphNode_Comment_160"
   NodePosX=-112
   NodePosY=-784
   NodeWidth=870
   NodeHeight=593
   NodeComment="Light random Changes Color every .5 seconds"
   NodeGuid=B7F311F041C1C6F9A865CC88918C5E6F
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