Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/media/levels/sample.oxw @ 5244

Last change on this file since 5244 was 5216, checked in by rgrieder, 16 years ago

Added some commented examples from the script_trigger branch.

  • Property svn:eol-style set to native
File size: 3.5 KB
Line 
1<!--?lua include("levels/test.oxw") ?-->
2
3<!--audio>
4        <ambient>
5                <ogg src="allgorythm-lift_up" />
6                <ogg src="allgorythm-resonance_blaster" />
7                <ogg src="luke_grey_-_hypermode" />
8                <ogg src="task_horizon_-_menu1" />
9                <ogg src="tha_silent_partner_-_void" />
10        </ambient>
11  </audio-->
12
13<Ambient colourvalue="0.8, 0.8, 0.8" />
14<Skybox src="Orxonox/Starbox" />
15<SpaceShip camera="true" position="0,0,0" scale="10" yawpitchroll="0,0,0" mesh="assff.mesh" maxSpeed="500" maxSideAndBackSpeed="50" maxRotation="1.0" transAcc="200" rotAcc="3.0" transDamp="75" rotDamp="1.0" />
16<Model position="2000,0,0" scale="10" mesh="tomato.mesh" yawpitchroll="-40,30,0" rotationAxis="1,0,0" rotationRate="-30"/>
17<Model position="0,2000,0" scale="10" mesh="tomato.mesh" yawpitchroll="-50,60,0" rotationAxis="1,0,0" rotationRate="-30"/>
18<Model position="0,0,2000" scale="10" mesh="tomato.mesh" yawpitchroll="-50,-30,0" rotationAxis="1,0,0" rotationRate="-30"/>
19<Model position="10000,16000,0" scale="100" mesh="DuBall1.mesh"/>
20<Model position="11400,16000,0" scale="60" mesh="DuBall2.mesh"/>
21<!--<Model position="20000,20000,0" scale="2000" mesh="planet.mesh"/>-->
22<NPC position="0,100,400" scale="1" mesh="razor.mesh"/>
23<NPC position="0,100,400" scale="1" mesh="razor.mesh"/>
24<NPC position="0,-100,500" scale="1" mesh="razor.mesh"/>
25<NPC position="0,-200,450" scale="1" mesh="razor.mesh"/>
26<NPC position="100,0,400" scale="1" mesh="razor.mesh"/>
27
28<!--
29<?lua
30for i = 1, 10, 1
31do ?>
32  <SpaceShipAI position="<?lua print(math.random() * 6000 - 3000) ?>,<?lua print(math.random() * 6000 - 3000) ?>,<?lua print(math.random() * 6000 - 3000) ?>" scale="10" yawpitchroll="0,0,0" mesh="assff.mesh" maxSpeed="500" maxSideAndBackSpeed="50" maxRotation="1.0" transAcc="200" rotAcc="3.0" transDamp="75" rotDamp="1.0" />
33<?lua
34end
35?>
36-->
37
38<!--Model name="starship" position="200,0,500" scale="10" mesh="starship.mesh" yawpitchroll="-90,-90,0" />
39<Model name="drone" position="-200,0,500" scale="10" mesh="drone.mesh" yawpitchroll="-90,-90,0">
40  <attached>
41    <Model name="drone2" position="200,-100,-500" scale="10" mesh="drone.mesh" yawpitchroll="-90,-90,0">
42      <attached>
43        <Model name="starship2" position="500,200,-500" scale="10" mesh="starship.mesh" yawpitchroll="-90,-90,0" />
44      </attached>
45    </Model>
46  </attached>
47</Model-->
48
49<!--Model position="-200,1000,500" scale="10" mesh="hoover_body.mesh" yawpitchroll="-90,-90,0" />
50<Model position="-200,1000,500" scale="10" mesh="hoover_gear0.mesh" yawpitchroll="-90,-90,0" />
51<Model position="-200,1000,500" scale="10" mesh="hoover_gear1.mesh" yawpitchroll="-90,-90,0" />
52<Model position="-200,1000,500" scale="10" mesh="hoover_gear2.mesh" yawpitchroll="-90,-90,0" />
53<Model position="-200,1000,500" scale="10" mesh="hoover_turbine.mesh" yawpitchroll="-90,-90,0" /-->
54
55<!--Trigger position="0,200,0" scale="2" delay="2" stayOn="1">
56  <DistanceTrigger position="100,0,0" scale="2" distance="80" stayOn="1.0" target="SpaceShip"/>
57  <DistanceTrigger position="150,0,0" scale="2" distance="80" stayOn="1.0" target="SpaceShip"/>
58</Trigger-->
59
60<?lua
61for i = 1, 226, 1
62do ?>
63  <Model position="<?lua print(math.random() * 40000 - 20000)?>, <?lua print(math.random() * 40000 - 20000) ?>, <?lua print(math.random() * 40000 - 20000) ?>" scale="<?lua print(math.random() * 250 + 20) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" rotationAxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationRate="<?lua print(math.random() * 30 + 15) ?>" />
64<?lua
65end
66?>
Note: See TracBrowser for help on using the repository browser.