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"

Battle music smooth change

Hi, how to change game music if enemy see player and back again?

Product Version: Not Selected
more ▼

asked Jun 06 '14 at 10:00 AM in Blueprint Scripting

avatar image

11 6 7 10

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

1 answer: sort voted first


There are a number of ways you could do this and this was the first that came to mind.

alt text

Have a Bool that determines when your player is spotted (in my example I just hooked it up to S for testing). Hook a Branch that checks that Bool up to an event Event Tick.

When the Bool is True, it executes a DoOnce node so it stops the current music (whatever your default music is) and immediately starts the new music (battle music). I do this since I want it immediately to kick in (you can use a FadeIn node if you wish).

When the Bool is False, it executes a DoOnce node and fades out the new music (battle music) before fading in the default music.

Hook the last node up in each sequence to reset the DoOnce nodes as shown.

Hope this helps,


blendmusic.png (185.9 kB)
more ▼

answered Jun 06 '14 at 03:55 PM

avatar image

DizzyWes ♦♦ STAFF
5k 145 64 206

avatar image Gr1m0n Jun 07 '14 at 06:23 AM

Hi, thanks for answer.

Can you show an example ShooterGame?

avatar image Gr1m0n Jun 07 '14 at 08:04 AM

And how to set radius where bot see player?

avatar image DizzyWes ♦♦ STAFF Jun 09 '14 at 01:42 PM

For this, I'd take a look at the Blueprint Office map. Take a look at the security camera Blueprint, it has logic for panning/scanning (which could be applied to a bot) and detecting a player within a radius (you'd just need to hook that up to a character in your level).

(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