I guess this question is really hard to word right so I’ll give it one more shot. Hopefully one of you guys are skilled enough to get this working for me and it would be realllly appreciated. I will give best answer if you get it working for me.
So, we’re developing this system and we have created an editor to simplify things. Everything works fine, but when we converted to the editor we lost the ability to add sound files to the original systemscript.
We want the editor to work with our system so badly but there’s hardly documentation on the editor and we have gone through every single piece of it 10x.
There is no way of getting a AudioClip sound column in the script we have, we have tried. When we remove the editors it appears again, therefore it’s some issue with the editor so that’s not a solution. Unless there is something I don’t know about…
For the explanation.
Script is called…System
//I dont know how to initiate the variable so tell me if I’m doing it wrong…
var numberTest : float; //???
if ((Time.time - lastTime) > lightningQuickness)
//Set numberTest equal to 1, If not how would I make this = 1?????? numberTest = 1;
var lightningSound: AudioClip;
if (numberTest = 1)
//If numberTest equals 1 from OTHER script play lightningSound.
My issue is I need to get numberTest FROM the system script TO the soundmanager script. This is taking care of the logic.
So how can I get numberTest to equal 1 in the SYSTEM script then get that value to SOUNDMANAGER to a sound when its reached.
I don’t know how to do this that’s why I’m asking. Please show me an example to get one variable to equal a value and then get it to another script keeping that value.
Hopefully this makes sense and someone ecan help us out. It would be really appreciated. This is the last thing and we’re done, we have put a good 100+ hours into this system.