Announcement

Collapse
No announcement yet.

Trying to deactivate particle effect through trigger box but doesn't work?

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

    Trying to deactivate particle effect through trigger box but doesn't work?

    Hello everyone!

    I have ran into a little issue with my particle effects. Since I am working with a snow level I have added a few particle effects in the character blueprint to make it look like it's snowing everywhere but in reality the snow is just attached to the player. So when the player runs into a cave, under a roof etc I need to deactivate these particle effects. I made a triggerbox and added a blueprint to it to tell when the player interact with the triggerbox the effects should deactive. However, the issue is that when I walk into it nothing happens. I have tried several solutions and I believe I have a blueprint now that should work but for some reason isn't and I can't figure out why!

    Here are two screenshots to explain the situation better. The first one is to show where my trigger box is and how when the player walks into the cave I want the particles to deactivate.

    http://imageshack.com/a/img905/368/CafX8O.png

    And here is a picture of the blueprint itself:

    Click image for larger version

Name:	DV3UKg.png
Views:	1
Size:	350.7 KB
ID:	1164920
    Attached Files
    Last edited by Johan3043; 10-12-2015, 04:57 PM.

    #2
    Do it like that.

    1. create an actor bp and add a trigger box + create a bool variable which you will set to true when the player touches the trigger
    2. now in the blueprint that has those particles (e.g character bp) you will have to cast to your trigger blueprint + get the bool variable and connect it with a branch node
    3. now connect the activate with the "false" and the deactivate with the "true.

    Now when the player touches the trigger the bool gets set to "true" and it will turn off the snow

    Comment


      #3
      Hello! Thanks for a answer! I unfortunately do not have that much experience yet with Blueprint to understand exactly what you mean by all this. When I created an actor bp there is no such thing called "Trigger box" so do you mean I should just add a normal box without collision and remove it's visibility from the game? Also when I have made the bool variable how does I make it go to true when a player touches the trigger?

      Oh and also! Would it be okay if I added you to Steam/Skype? Might be better than creating lots of threads here on the forum!

      Comment


        #4
        With trigger box I mean a collision volume + in the settings of it at the bottom you can see different events - just choose the "on touched" event - in the event graph you have to "set" the bool (enable true) and connect it with the event.
        Currently I'm not so active on skype as I get an overwhelming amount of messages each day and I dont have time to answer them all

        Comment


          #5
          Okay I tried to do it, think I got most of it right but for some reason it's still not working. So I must have gotten something wrong! When I walk into the blueprint on the level nothing happens, it doesn't seem to trigger when looking at the blueprint debug :/

          Right, here are some screenshots to show how I have done it so far:

          Click image for larger version

Name:	RbdPdX.png
Views:	1
Size:	307.7 KB
ID:	1091235

          Click image for larger version

Name:	YyOj0S.png
Views:	1
Size:	205.7 KB
ID:	1091236

          Click image for larger version

Name:	yb2RND.png
Views:	1
Size:	316.5 KB
ID:	1091237

          Comment

          Working...
          X