How do I Play a sound when someone has a helmet on

Started by Yosuu on Tue, 08/20/2019 - 04:04

Topic category: Help with MCreator modding

Last seen on 00:19, 28. Sep 2019
Joined Aug 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
How do I Play a sound when someone has a helmet on
Tue, 08/20/2019 - 04:04

I am trying to play a song that is around 3:00 long when someone puts on a helmet I made. I imported the song as an ogg and have a procedure under Helmet Tick event (https://imgur.com/a/602jCUA). When I put on the helmet the game freezes and crashes.

 

 

Last seen on 10:38, 17. Nov 2019
Joined Aug 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
The game is probably…
Sat, 09/21/2019 - 10:29

The game is probably crashing because it is attempting to repeatedly play that song over and over again.
You will probably need to find a way to test if the song is being currently played, and if it is not, then play it.