Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/sound3/data/levels/sound.oxw @ 6027

Last change on this file since 6027 was 5982, checked in by youngk, 15 years ago

Ambient Sounds are now locationally triggerable, i.e if the player comes close to an object, it's own ambient sound starts playing, while the sound of the outer object is paused. Upon leaving proximity of that object, the old sound is resumed. —> Triggerable by changing active state.

File size: 1.0 KB
RevLine 
[5982]1<?lua
2  include("stats.oxo")
3  include("hudtemplates3.oxo")
4?>
5
6<?lua
7  include("templates/spaceship_assff.oxt")
8  include("templates/spaceship_pirate.oxt")
9?>
10
11<Level
12 name         = "Sample"
13 description  = "Just a few tests"
14>
15  <Scene
16    ambientlight = "0.8, 0.8, 0.8"
17    skybox       = "Orxonox/Starbox"
18  >
19  <AmbientSound source="ambient/mainmenu.wav" loop="true" playOnLoad="true" />
20  <AmbientSound source="ambient/CoreWave.wav" loop="true" playOnLoad="false">
21        <events>
22                <activity>
23                        <DistanceTrigger position="300,100,0" distance=200 target="ControllableEntity">
24                                <attached>
25                                        <ParticleSpawner position="0,0,0" source="Orxonox/fire3" lifetime=0 loop=0 autostart=1 />
26                                </attached>
27                        </DistanceTrigger>
28                </activity>
29        </events>
30  </AmbientSound>
31    <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0" />
32    <SpawnPoint position="0,0,0" spawnclass=SpaceShip pawndesign=spaceshippirate />
33  </Scene>
34</Level>
Note: See TracBrowser for help on using the repository browser.