x

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"

How do I subclass from ParticleEventSendToGame?

I started looking into this when I found myself in the need of using a particle to trigger an event on an object it collided with. I found that using Event Generator on the particle system was the way to go, as this allows you to make each particle trigger an event with a given name after the collision happens, but when I started to investigate how to create this event on the receiving object, I started to have problems and am now hitting a wall basically.

According to the **documentation** of the Event Generator, the Particle Event Send To Game field is supossed to contain the name of the event that will be triggered on the receiving object (meaning on the object that was hit by the particle), and according to the description of the field: "Requires your game to implement new subclasses of ParticleModuleEventSendToGame representing the types of game events particle events should be able to trigger.". This information is really vague and wasn't really helpful.

I've tried to find a reference to ParticleModuleEventSendToGame from code, and I've found #define directives that contain that name, but no class to subclass from. I've read **this** post which tells me that there is indeed a way of achieving this, but I still don't know how.

I've also read this forum **post** but no luck either, I can't seem to find a proper source that outlines the steps I need to follow to achieve what I need, and then again, the official documentation on this matter is really vague.

If anyone could post a code sample showing how to subclass from ParticleModuleEventSendToGame and to implement the event that will be called, or just a link to information that may help be get on the right track that would be great!

Thanks!

Product Version: Not Selected
Tags:
more ▼

asked May 07 '14 at 08:29 PM in C++ Programming

avatar image

Canotico
1 4 6 7

avatar image HuntaKiller Dec 02 '15 at 11:04 AM

Any documentation or help on this after a year?

avatar image HuntaKiller Mar 01 '16 at 03:27 AM

Still haven't found a way to solve this problem

avatar image Nox_A15 Sep 11 '17 at 08:36 PM

I'm also interested in this topic and after a few years it's still hard to find something specific.

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

3 answers: sort voted first

I have created pull-request to solve this problem: https://github.com/EpicGames/UnrealEngine/pull/1522

more ▼

answered Sep 03 '15 at 02:50 PM

avatar image

RenovatioNova
117 6 11 18

avatar image Alisaxy Apr 26 '16 at 04:25 PM

Hey, I can't seem to get the diff on that pull request from the link you've provided. Care to provide a snippet? Thanks.

avatar image RenovatioNova Apr 27 '16 at 07:42 AM

Have fixed the URL, dot at the end of sentence appended to URL by link parser.

avatar image Alisaxy Apr 27 '16 at 10:30 PM

Thanks a lot!

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

but in 4.10 and 4.11, there still a bug, plese fix up it.

more ▼

answered Apr 19 '16 at 11:14 AM

avatar image

cppluacpp
1 1 1 2

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

Wow, I just lost 2 hours looking like a total idiot trying to fix an engine-side problem... Fix... Pretty please?

more ▼

answered Apr 26 '16 at 04:18 PM

avatar image

Alisaxy
78 5 7 10

(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