Announcement

Collapse
No announcement yet.

Matinee: Interp Actor that alternates between Play and Reverse on touch

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Matinee: Interp Actor that alternates between Play and Reverse on touch

    Essentially, I want to create an object that goes from point A to point B when a player touches it and stays at point B until a player touches it again, in which case it returns to point A, and so on. I can get the object to go to point B without a problem. However, I can't figure out how to tell it to return to point A the next time it is touched. Any leads on how to go about doing this would be much appreciated - thanks.

    #2
    Not the only method, of course, but check out the exterior moving platform in DM-Carbonfire; see if you can work from that, and this:
    http://udn.epicgames.com/Three/KismetUserGuide.html


    Edit: Actually, I just looked at this map, and it was perhaps a bad example. They are using the Mover event and there were two movers. You would want to replace that with a touch event, then add a delay (or set the Touch retrigger delay) for a , for the simplest method:
    copy/paste the following to kismet editor to see an example.
    Code:
    Begin Object Class=SeqEvent_Touch Name=SeqEvent_Touch_3 Archetype=SeqEvent_Touch'Engine.Default__SeqEvent_Touch'
       MaxTriggerCount=0
       ReTriggerDelay=5.000000
       MaxWidth=71
       OutputLinks(0)=(Links=((LinkedOp=SeqAct_Switch'SeqAct_Switch_1')),DrawY=-550)
       OutputLinks(1)=(DrawY=-528,bHidden=True)
       VariableLinks(0)=(bHidden=True,DrawX=-1752)
       VariableLinks(1)=(ExpectedType=Class'Engine.SeqVar_Float',LinkDesc="ReTriggerDelay",PropertyName="ReTriggerDelay",bHidden=True,MaxVars=255,DrawX=-1753)
       ObjInstanceVersion=1
       ParentSequence=Sequence'Main_Sequence'
       ObjPosX=-1800
       ObjPosY=-616
       ObjComment="retrigger delay => matinee time"
       DrawWidth=72
       DrawHeight=144
       Name="SeqEvent_Touch_3"
       ObjectArchetype=SeqEvent_Touch'Engine.Default__SeqEvent_Touch'
    End Object
    Begin Object Class=SeqAct_Switch Name=SeqAct_Switch_1 Archetype=SeqAct_Switch'Engine.Default__SeqAct_Switch'
       LinkCount=2
       bLooping=True
       InputLinks(0)=(DrawY=-549)
       OutputLinks(0)=(Links=((LinkedOp=SeqAct_Interp'SeqAct_Interp_30')),DrawY=-559)
       OutputLinks(1)=(Links=((LinkedOp=SeqAct_Interp'SeqAct_Interp_30',InputLinkIdx=1)),LinkDesc="Link 2",DrawY=-539)
       VariableLinks(0)=(bHidden=True,DrawX=-1607)
       ObjInstanceVersion=1
       ParentSequence=Sequence'Main_Sequence'
       ObjPosX=-1641
       ObjPosY=-595
       DrawWidth=65
       DrawHeight=69
       Name="SeqAct_Switch_1"
       ObjectArchetype=SeqAct_Switch'Engine.Default__SeqAct_Switch'
    End Object
    Begin Object Class=SeqAct_Interp Name=SeqAct_Interp_30 Archetype=SeqAct_Interp'Engine.Default__SeqAct_Interp'
       InputLinks(0)=(DrawY=-560)
       InputLinks(1)=(DrawY=-540)
       InputLinks(2)=(DrawY=-534,bHidden=True)
       InputLinks(3)=(DrawY=-512,bHidden=True)
       InputLinks(4)=(DrawY=-490,bHidden=True)
       OutputLinks(0)=(DrawY=-562,bHidden=True)
       OutputLinks(1)=(DrawY=-506,bHidden=True)
       VariableLinks(0)=(LinkedVariables=(InterpData'InterpData_20'),DrawX=-1485)
       ObjInstanceVersion=1
       ParentSequence=Sequence'Main_Sequence'
       ObjPosX=-1517
       ObjPosY=-596
       DrawWidth=66
       DrawHeight=85
       Name="SeqAct_Interp_30"
       ObjectArchetype=SeqAct_Interp'Engine.Default__SeqAct_Interp'
    End Object
    Begin Object Class=InterpData Name=InterpData_20 Archetype=InterpData'Engine.Default__InterpData'
       Begin Object Class=InterpCurveEdSetup Name=InterpCurveEdSetup_0 ObjName=InterpCurveEdSetup_0 Archetype=InterpCurveEdSetup'Engine.Default__InterpCurveEdSetup'
          Name="InterpCurveEdSetup_0"
          ObjectArchetype=InterpCurveEdSetup'Engine.Default__InterpCurveEdSetup'
       End Object
       CurveEdSetup=InterpCurveEdSetup'InterpCurveEdSetup_0'
       SelectedFilter=InterpFilter'Engine.Default__InterpData:FilterAll'
       ObjInstanceVersion=1
       ParentSequence=Sequence'Main_Sequence'
       ObjPosX=-1472
       ObjPosY=-464
       DrawWidth=32
       DrawHeight=32
       Name="InterpData_20"
       ObjectArchetype=InterpData'Engine.Default__InterpData'
    End Object

    Comment


      #3
      Thanks, got it working for the most part after looking at your examples.

      Originally posted by NickG View Post
      Not the only method, of course, but check out the exterior moving platform in DM-Carbonfire; see if you can work from that, and this:
      http://udn.epicgames.com/Three/KismetUserGuide.html


      Edit: Actually, I just looked at this map, and it was perhaps a bad example. They are using the Mover event and there were two movers. You would want to replace that with a touch event, then add a delay (or set the Touch retrigger delay) for a , for the simplest method:
      copy/paste the following to kismet editor to see an example.
      Code:
      Begin Object Class=SeqEvent_Touch Name=SeqEvent_Touch_3 Archetype=SeqEvent_Touch'Engine.Default__SeqEvent_Touch'
         MaxTriggerCount=0
         ReTriggerDelay=5.000000
         MaxWidth=71
         OutputLinks(0)=(Links=((LinkedOp=SeqAct_Switch'SeqAct_Switch_1')),DrawY=-550)
         OutputLinks(1)=(DrawY=-528,bHidden=True)
         VariableLinks(0)=(bHidden=True,DrawX=-1752)
         VariableLinks(1)=(ExpectedType=Class'Engine.SeqVar_Float',LinkDesc="ReTriggerDelay",PropertyName="ReTriggerDelay",bHidden=True,MaxVars=255,DrawX=-1753)
         ObjInstanceVersion=1
         ParentSequence=Sequence'Main_Sequence'
         ObjPosX=-1800
         ObjPosY=-616
         ObjComment="retrigger delay => matinee time"
         DrawWidth=72
         DrawHeight=144
         Name="SeqEvent_Touch_3"
         ObjectArchetype=SeqEvent_Touch'Engine.Default__SeqEvent_Touch'
      End Object
      Begin Object Class=SeqAct_Switch Name=SeqAct_Switch_1 Archetype=SeqAct_Switch'Engine.Default__SeqAct_Switch'
         LinkCount=2
         bLooping=True
         InputLinks(0)=(DrawY=-549)
         OutputLinks(0)=(Links=((LinkedOp=SeqAct_Interp'SeqAct_Interp_30')),DrawY=-559)
         OutputLinks(1)=(Links=((LinkedOp=SeqAct_Interp'SeqAct_Interp_30',InputLinkIdx=1)),LinkDesc="Link 2",DrawY=-539)
         VariableLinks(0)=(bHidden=True,DrawX=-1607)
         ObjInstanceVersion=1
         ParentSequence=Sequence'Main_Sequence'
         ObjPosX=-1641
         ObjPosY=-595
         DrawWidth=65
         DrawHeight=69
         Name="SeqAct_Switch_1"
         ObjectArchetype=SeqAct_Switch'Engine.Default__SeqAct_Switch'
      End Object
      Begin Object Class=SeqAct_Interp Name=SeqAct_Interp_30 Archetype=SeqAct_Interp'Engine.Default__SeqAct_Interp'
         InputLinks(0)=(DrawY=-560)
         InputLinks(1)=(DrawY=-540)
         InputLinks(2)=(DrawY=-534,bHidden=True)
         InputLinks(3)=(DrawY=-512,bHidden=True)
         InputLinks(4)=(DrawY=-490,bHidden=True)
         OutputLinks(0)=(DrawY=-562,bHidden=True)
         OutputLinks(1)=(DrawY=-506,bHidden=True)
         VariableLinks(0)=(LinkedVariables=(InterpData'InterpData_20'),DrawX=-1485)
         ObjInstanceVersion=1
         ParentSequence=Sequence'Main_Sequence'
         ObjPosX=-1517
         ObjPosY=-596
         DrawWidth=66
         DrawHeight=85
         Name="SeqAct_Interp_30"
         ObjectArchetype=SeqAct_Interp'Engine.Default__SeqAct_Interp'
      End Object
      Begin Object Class=InterpData Name=InterpData_20 Archetype=InterpData'Engine.Default__InterpData'
         Begin Object Class=InterpCurveEdSetup Name=InterpCurveEdSetup_0 ObjName=InterpCurveEdSetup_0 Archetype=InterpCurveEdSetup'Engine.Default__InterpCurveEdSetup'
            Name="InterpCurveEdSetup_0"
            ObjectArchetype=InterpCurveEdSetup'Engine.Default__InterpCurveEdSetup'
         End Object
         CurveEdSetup=InterpCurveEdSetup'InterpCurveEdSetup_0'
         SelectedFilter=InterpFilter'Engine.Default__InterpData:FilterAll'
         ObjInstanceVersion=1
         ParentSequence=Sequence'Main_Sequence'
         ObjPosX=-1472
         ObjPosY=-464
         DrawWidth=32
         DrawHeight=32
         Name="InterpData_20"
         ObjectArchetype=InterpData'Engine.Default__InterpData'
      End Object

      Comment

      Working...
      X