Well the really simple idea would be to spawn another object, exactly the same but with the ambient sound turned off. Once you click on the commandbutton, the unit destorys itself and also creates the same unit without or with the ambient sound. The command buttons vary from the 2 units. (No Ambient sound unit - spawns ambient sound unit. and vice versa. I'm sure I can think of something better, as this one is a quickie.
|