[SOLVED]Send Message to Array

hey,

another problem… argh :x
i got an array of models with an LOD what i want to change with an button.(like high/med/low Quality)
when i push a button it has to run a function:

function HighQuality ()
{
	HouseTag.SendMessage ("LODhigh", 2000);
}

but i get this error:
"Assets/Gui/scripts/GuiLoad.js(413,17): BCE0019: ‘SendMessage’ is not a member of ‘(UnityEngine.GameObject)’. "

maybe i have to send it with the “BroadcastMessage” command… or is there another way?

thnx

nvm… i got it :slight_smile:

i had to do it with a for loop
like this:

function HighQuality ()
{
	for (var house in HouseTag)
	{
		house.SendMessage ("LODhigh", 2000);
	}
}