Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

deactivate particle system after collide with particle system

i try to create a game which enable the user to extinguish the fire particle system with a water gun. the gun with sphere projectile and applied with water effect. the question is, how to extinguish the fire once the water hit it? i mean when the water hit the fire particle, the fire is extinguish or fade maybe use delay function. i try event hit and collide and it doesn't work. sorry for my bad english

Product Version: UE 4.14
more ▼

asked Feb 21 '17 at 03:53 PM in Blueprint Scripting

avatar image

1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

I am pretty sure particle components do not have any Collision. So you will probably need to add Collision Shapes, like the Sphere Collision Component. Once your water and fire collision components hit each other or overlap, you can deactivate the Fire Particle Component. For the collision take into account the Collision Profiles, that you assign to your Collision Components.

more ▼

answered Feb 21 '17 at 04:03 PM

avatar image

249 26 36 71

avatar image fahimspark Feb 23 '17 at 08:35 AM

thanx AllJonasNeeds but i am new to Unreal Engine. how to apply collision into the fire particles? since i have my firstperson BP and it already has sphere collision and i add water effect on it. can you show me the step on how to extinguish the fire when shoot the fire in the video? heheehe sorry too many request

avatar image AllJonasNeeds Feb 23 '17 at 11:01 AM

I don't know what video you are talking about.

But given that you are new to the Engine, I would advise you to go through some more general purpose tutorials first to get a better grip on Unreal's core concepts and classes. When you have mastered the basics you could come back to your fire/water problem and will probably be able to solve it with ease.

Unreal Engine's youtube channel has some great content, like the BP 3rd Person game, which covers some collision topics in episode 21, or probably better would be the BP Twin Stick Shooter Tutorial.

avatar image AllJonasNeeds Feb 23 '17 at 11:54 AM

Let me also try to also give you some more pointers of a way to implement Water and Fire:

I would create a Fire and a Water Blueprint, which are both based on Actor with a CollisionComponent (either a Box- or SphereCollision) as the RootComponent and a ParticleSystemComponent attached to the root, which uses either a fire or water particle system. I would set the CollisionProfiles of both fire and water CollisionComponents to OverlappAllDynamic.

The Water Actor would also have a ProjectileMovementComponent with a StartingVelocity in X direction, so that it would move when the Water Actor is spawned at the end of the fire hose.

Inside the Fire Actor blueprint, I would add a OnActorBeginOverlap node followed by a branch to check whether the other actor is of the water actor class. So if the Fire starts overlapping a Water actor, you could call DestroyActor for the fire.

avatar image fahimspark Feb 28 '17 at 05:45 AM

thank you for the suggestion bro. sorry for late reply. i try thanks a lot hehe

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question