Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/script_trigger/bin/levels/sample.oxw @ 1341

Last change on this file since 1341 was 1307, checked in by bknecht, 17 years ago

created Script object and renamed old Script class to LuaBind

File size: 2.3 KB
Line 
1 <!--audio>
2        <ambient>
3                <ogg src="allgorythm-lift_up" />
4                <ogg src="allgorythm-resonance_blaster" />
5                <ogg src="luke_grey_-_hypermode" />
6                <ogg src="task_horizon_-_menu1" />
7                <ogg src="tha_silent_partner_-_void" />
8        </ambient>
9  </audio-->
10
11<!--Ambient colourvalue="1,1,1" /-->
12<Skybox src="Orxonox/StarSkyBox" />
13<SpaceShip camera="true" position="0,0,0" scale="10" yawpitchroll="-90,-90,0" mesh="assff.mesh" maxSpeed="500" maxSideAndBackSpeed="50" maxRotation="1.0" transAcc="200" rotAcc="3.0" transDamp="75" rotDamp="1.0" />
14<Script>
15  print("****")
16  print("Hello Scripting World")
17  print("****")
18</Script>
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
44<?lua
45for i = 1, 226, 1
46do ?>
47  <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( math.mod(i,6) + 1) ?>.mesh" rotationAxis="<?lua print(math.random()) ?>, <?lua print(math.random()) ?>, <?lua print(math.random()) ?>" rotationRate="<?lua print(math.random(16, 44)) ?>" />
48<?lua
49end
50?>
Note: See TracBrowser for help on using the repository browser.