#Help me please!!!

1 messages · Page 1 of 1 (latest)

tacit stone
#

You can use the IOBS script and interactability dat lines to make an interactable object that will play music

signal egret
signal egret
thin cradle
thin cradle
#

Why not

signal egret
thin cradle
# signal egret 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"

thin cradle
#

But that's barricade

#

Not obj

signal egret
thin cradle
signal egret
#

||@tacit stone|| Help me please?

tacit stone
#

do you want to make an object or a barricade ?

signal egret
tacit stone
#

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

signal egret
tacit stone
#

On state enabled, add your gameobject and make it play the audio source

#

same for disabled except it would stop instead of playing

tacit stone
#

drag your gameobject which has the audio source in there

#

then add a function on the audio source

signal egret
tacit stone
#

this is a barricade not and object, and you do not have an audio source on there

tacit stone
#

put a gameobject here not the audio file directly

signal egret
tacit stone
#

the one which has the audio source component

signal egret
#

Drag the lamp?

#

||@tacit stone|| Should this be done?

tacit stone
#

yes but on an Object not a Barricade

#

your asset is a barricade so it won't work

signal egret
solemn sparrow
#

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 SMALL object maybe not cant find the code anywhere...