Jump to content

a problem of earthquake


Recommended Posts

Try breaking.components.SoundEmitter (after local breaking = spawnprefab)

if the ground_chunks_breaking has a sound component

 

OMG!!!!!!

i find i just need to comment "inst.SoundEmitter:PlaySound("dontstarve/common/stone_drop")"

it can work !!!!!!! How foolish i am .........

But i still dont know why it will crash if i don't comment it .......

And where shoud i add"breaking.components.SoundEmitter (after local breaking = spawnprefab)" ?

Could you show it for me ? Thank you !!~

( ? )

Anyway

local breaking = SpawnPrefab("ground_chunks_breaking")

  breaking.components.SoundEmitter

 

 

but this will work only if the prefab has the soundemitter component

 

haha

and last question ,

"  inst.SoundEmitter:PlaySound("dontstarve/common/stone_drop")"

i dont understand  what "dontstarve/common/stone_drop" means , is it just a path ? or anything else ?

haha

and last question ,

"  inst.SoundEmitter:PlaySound("dontstarve/common/stone_drop")"

i dont understand  what "dontstarve/common/stone_drop" means , is it just a path ? or anything else ?

 

It's a path

 

if you go to dontstarve/data/sound there should be a TXT file, wich contains all of the sound paths used in game

It's a path

 

if you go to dontstarve/data/sound there should be a TXT file, wich contains all of the sound paths used in game

 

well, but it's weird .I can not find the folder of "common".

Anyway

Thank you for your help. Finally  i solve this problem,  Thank god....

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...