Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/notifications/data/levels/tutorial.oxw @ 7444

Last change on this file since 7444 was 7358, checked in by dafrick, 14 years ago

Adding method that puts a keybinding into a more human readable form.

  • Property svn:eol-style set to native
File size: 1.5 KB
RevLine 
[5378]1<?lua
[5654]2  include("hudtemplates3.oxo")
3  include("stats.oxo")
4  include("templates/spaceship_assff.oxt")
[7163]5  include("templates/lodinformation.oxt")
[5378]6?>
7
8<Level
9 name         = "Presentation"
10 description  = "A simple testlevel"
11>
[7163]12  <templates>
13    <Template link=lodtemplate_default />
14  </templates>
15
[5378]16  <Scene
17   ambientlight = "0.5, 0.5, 0.5"
18   skybox       = "Orxonox/skypanoramagen1"
19  >
[5452]20
[7358]21      <CommandNotification preMessage="Move '" postMessage="' to look left." command="scale 1 rotateYaw">
[7193]22        <events>
23            <trigger>
[7319]24                <DistanceTrigger name=trigger position="0,0,-100" distance=10 target="Pawn" />
[7193]25            </trigger>
26        </events>
27    </CommandNotification>
[7319]28    <Billboard position="0,0,-100" colour="1.0,1.0,0" material="Examples/Flare" />
[7210]29
30    <SimpleNotification message="Awesome!!!">
31        <events>
32            <trigger>
[7319]33                <DistanceTrigger name=trigger position="0,0,100" distance=10 target="Pawn" />
[7210]34            </trigger>
35        </events>
36    </SimpleNotification>
[7319]37    <Billboard position="0,0,100" colour="1.0,0,1.0" material="Examples/Flare" />
[7163]38 
[5452]39
40
[5378]41    <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" />
42
[5403]43
[7163]44    <?lua
45      for i = 1, 10, 1 do
46    ?>
47      <SpawnPoint position="<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>,<?lua print(math.random() * 1000 - 500) ?>" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
48    <?lua end ?>
[5383]49
[7163]50
[5378]51  </Scene>
52</Level>
Note: See TracBrowser for help on using the repository browser.