#Help me please!!!
1 messages · Page 1 of 1 (latest)
You can use the IOBS script and interactability dat lines to make an interactable object that will play music
I don't know how to do this, can you help?
If you need only one track, then the "lamp" object will suit your needs. I don't remember the Id, but look for it by its name, in the unity settings, instead of the light, insert the Audio Source component
And will it work?

Why not
Okay, I'll try now
In the .dat, don't forget to remove the line that is responsible for starting with electricity. I don't remember its name, but I think its name is related to the word "Energy, Electricity"
Ок
?
This?
??
Show me audio setting, and audio source component
Here you go?
||@tacit stone|| Help me please?
do you want to make an object or a barricade ?
An object that you can click on and there will be a song
First, create the object itself from an example, then, add a gameobject with an audio source component and your song (make sure it does not play automaticly)
Add the IOBS script to yor Object prefab, and make it play and stop the audio from the gameobject you added
Add Interactability lines in the dat file of the object
???
On state enabled, add your gameobject and make it play the audio source
same for disabled except it would stop instead of playing
?
drag your gameobject which has the audio source in there
then add a function on the audio source
?
this is a barricade not and object, and you do not have an audio source on there
?
put a gameobject here not the audio file directly
What game object?
the one which has the audio source component
????
something else you may run into, small objects get their colliders removed which means you cant look at it to enable it so make sure you dont make it a maybe not cant find the code anywhere...SMALL object