Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/script/bin/levels/sample.oxw @ 1045

Last change on this file since 1045 was 1019, checked in by bknecht, 17 years ago

You can now use lua tags everywhere in the XML file you want: It'll work. Even wrongly put tags are corrected now. Read the wikipages about scripting to see how you can use it.

File size: 2.4 KB
Line 
1<!--
2 <audio>
3                <ambient>
4                        <ogg src="allgorythm-lift_up" />
5                        <ogg src="allgorythm-resonance_blaster" />
6                        <ogg src="luke_grey_-_hypermode" />
7                        <ogg src="task_horizon_-_menu1" />
8                        <ogg src="tha_silent_partner_-_void" />
9                </ambient>
10  </audio>
11
12-->
13
14<Ambient colourvalue="1,1,1" />
15<Skybox src="Orxonox/StarSkyBox" />
16
17<!--Fighter camera="true" position="0,0,0" scale="10" yawpitchroll="-90,-90,0" mesh="assf3.mesh"  forward="500" rotateupdown="200" rotaterightleft="200" looprightleft="200" /-->
18<SpaceShip camera="true" position="0,0,0" scale="10" yawpitchroll="-90,-90,0" mesh="assf3.mesh" maxSpeed="500" maxSideAndBackSpeed="50" maxRotation="1.0" transAcc="200" rotAcc="3.0" transDamp="75" rotDamp="1.0" />
19
20<NPC position="0,100,400" scale="1" mesh="razor.mesh"/>
21<NPC position="0,100,400" scale="1" mesh="razor.mesh"/>
22<NPC position="0,-100,500" scale="1" mesh="razor.mesh"/>
23<NPC position="0,-200,450" scale="1" mesh="razor.mesh"/>
24<NPC position="100,0,400" scale="1" mesh="razor.mesh"/>
25
26<!--Model name="starship" position="200,0,500" scale="10" mesh="starship.mesh" yawpitchroll="-90,-90,0" /-->
27<!--Model name="drone" position="-200,0,500" scale="10" mesh="drone.mesh" yawpitchroll="-90,-90,0">
28  <attached>
29    <Model name="drone2" position="200,-100,-500" scale="10" mesh="drone.mesh" yawpitchroll="-90,-90,0">
30      <attached>
31        <Model name="starship2" position="500,200,-500" scale="10" mesh="starship.mesh" yawpitchroll="-90,-90,0" />
32      </attached>
33    </Model>
34  </attached>
35</Model -->
36
37<Model position="-200,1000,500" scale="10" mesh="hoover_body.mesh" yawpitchroll="-90,-90,0" />
38<Model position="-200,1000,500" scale="10" mesh="hoover_gear0.mesh" yawpitchroll="-90,-90,0" />
39<Model position="-200,1000,500" scale="10" mesh="hoover_gear1.mesh" yawpitchroll="-90,-90,0" />
40<Model position="-200,1000,500" scale="10" mesh="hoover_gear2.mesh" yawpitchroll="-90,-90,0" />
41<Model position="-200,1000,500" scale="10" mesh="hoover_turbine.mesh" yawpitchroll="-90,-90,0" />
42
43<?lua
44for i = 1, 226, 1
45do ?>
46  <Model position="<?lua print(math.random(-19597, 18732))?>, <?lua print(math.random(-19597, 18732)) ?>, <?lua print(math.random(-19597, 18732)) ?>" scale="<?lua print(math.random( 20, 119)) ?>" mesh="ast<?lua print(i%6 + 1) ?>.mesh" rotationAxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationRate="<?lua print(math.random(16, 44)) ?>" />
47<?lua
48end
49?>
Note: See TracBrowser for help on using the repository browser.