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"

Using Events multiple times

I have a problem here. Im using the Even 'OnLanded' To set a landing sound. If the player got a high fall, it will play 'A' soud, if it was soft it will play 'B' Sound... Now If the player is having a extreme fall (Like skydiving) a sound cue will start to simulate air, like a real skydive. Now when the player hits the ground (OnLanded Event) I want that sound to stop. But I can't use this event twice in the EventGraph.

Also, I don't know how to stop a sound cue using blueprints. I can't find a function to do this.

Thanks for your help.

Product Version: Not Selected
more ▼

asked Sep 21 '14 at 11:15 PM in Blueprint Scripting

avatar image

192 19 23 80

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

1 answer: sort voted first

Why dont you use a branch node after the OnLanded Event which determines which sound is played on landing?

You can set a bool after a certain amount of time spent in the air, then if that bool is true on landing player the 'A sound', if it is false 'B sound'.

more ▼

answered Sep 22 '14 at 01:25 AM

avatar image

154 6 17 19

avatar image Georgespartan01 Sep 22 '14 at 01:41 AM

That's not what I want to achieve. The landing sound works fine, what I want to do is use the 'OnLanded' Event for another action, multiple actions, specially for spawning a decal in the player position. But I can use that event only once, and Im using it for setting the landing sound.

avatar image Ategig Sep 22 '14 at 01:43 AM

Can you send a screen shot of your blueprint? What is stopping you from continuing the flow past the sound events?

avatar image Georgespartan01 Sep 22 '14 at 02:04 AM

alt text

There. Im using that event for a specific action, I want it to use it for another action, like spawning a decal when it lands. But If I connect the Event Exec to another function, the previous action will not work.

problem.png (93.8 kB)
avatar image Ategig Sep 22 '14 at 02:17 AM

Ok well you can either do the spawn decal at location node straight after your play sound at location.

Or use a custom event like this -

alt text

Am I missing something with your question? It seems simple to add the decal node straight after in the flow graph but I am not sure why you are having troubles with that.

If this is not how you want to do it try using a sequence node,

alt text

decal.png (166.2 kB)
problem2.png (164.0 kB)
avatar image Georgespartan01 Sep 22 '14 at 02:22 AM

OOOUH! So that's how you can use sequences. Yes yes, that makes sense. Thanks so much man! Oh one more question, if I create the custom event 'SpawnLandingDecal' will this event trigger when I land? That was great man, thanks.

avatar image Ategig Sep 22 '14 at 02:25 AM

Yeah it will, it will trigger when the flow travels through the node called "spawn landing decal". After you make the event, you can just drag off after your get landing sound node and type in the event name, it will then trigger.

Glad I could help. Let me know if you need anything else.

avatar image Georgespartan01 Sep 22 '14 at 02:37 AM

Yup, that was great. Thanks again mate.

(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