Announcement

Collapse
No announcement yet.

State Change Multi

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

    [FEATURE REQUEST] State Change Multi

    Essentially, a way to uniquely execute a path once until a new path is determined. It would be used similarly to a DoOnce Multi in blueprint.

    Use case: An actor has 4 damaged states, each starts a new set particle effects for light, medium, heavy, and no damage, when it's health changes only start the next set of damaged particles if the state of health has changed.

    Similar blueprint functionality.

    Click image for larger version

Name:	56895-statechange.png
Views:	1
Size:	120.8 KB
ID:	1161326

    #2
    Originally posted by BaneDeath View Post
    Essentially, a way to uniquely execute a path once until a new path is determined. It would be used similarly to a DoOnce Multi in blueprint.

    Use case: An actor has 4 damaged states, each starts a new set particle effects for light, medium, heavy, and no damage, when it's health changes only start the next set of damaged particles if the state of health has changed.

    Similar blueprint functionality.

    Why not try a "Switch on Enum". During each damaged state you set the enum value to whichever you need (None, Light, Medium, Heavy damage, etc.), you can run a custom function that runs your particle systems, etc. based on which enum is being used.
    Adam Davis | Marketplace Support | Epic Games
    How to report a bug? | Installation & Setup issues? | Answerhub Bug Reports | Twitter

    Comment


      #3
      This would be more generic and usable.. So you can branch on anything instead of having to branch and set enum based on conditions then switch on those conditions, then compare the enum again, which if this node existed you could just plug your branches r

      Comment


        #4
        switch on int

        Comment


          #5
          I think you guys are missing the point.. The thing will only happen once and is based on execution path, not arbitrary value. Switch on int is essentially the input into this node and this wouldn't require keeping around extra data.
          Last edited by BaneDeath; 09-15-2015, 05:50 PM.

          Comment


            #6
            i dont understand
            just make good macro and show us what you want

            Comment


              #7
              You can't make a macro because it would need variable input. Otherwise I would just do that and not post here. :-p It would look like a Do Once Multi - but work like above instead.

              Comment

              Working...
              X