sound-helper (1).nas 427 B

123456789101112
  1. var view_level_inside = props.globals.initNode("/sound/view-level-inside");
  2. var view_level_outside = props.globals.initNode("/sound/view-level-outside");
  3. setlistener("sim/current-view/internal", func{
  4. if(getprop("sim/current-view/internal")==1){
  5. view_level_inside.setValue(1.0);
  6. view_level_outside.setValue(0.0);
  7. }else{
  8. view_level_inside.setValue(0.0);
  9. view_level_outside.setValue(1.0);
  10. }
  11. }, 1);