setting a variable of a newly added component

Hi
I’m having problems doing this:

Audio audioScript = (Audio)crashGO.AddComponent(typeof(Audio));
audioscript.soundDist = 400;

The component gets added, but the variable does not get set.

Can anybody see what could be wrong with this method?

oh, and this happens in OnCollisionEnter, if that makes any difference…

ok, I’m an idiot… don’t look at this thread…
(capital S)