Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/contentcreation/pps/MirkoKaiser/CuboidSS/Version2/levels/CuboidSpaceStation.oxw @ 7139

Last change on this file since 7139 was 5329, checked in by mkaiser, 16 years ago

Some changes.

File size: 3.5 KB
RevLine 
[5329]1<?lua
2        include("levels/hudtemplates.oxw")
3?>
4
5<?lua
6        include("levels/spaceshiptemplates.oxw")
7?>
8
9<Level
10        name = "SpaceStation test Space!"
11        description = "All the new SpaceStations are created here!"
12>
13        <Scene
14                ambientlight = "0.5, 0.5, 0.5"
15                skybox = "Orxonox/Starbox"
16        >
17
18
19
20<!-------------------------------------------------------------------------------------------------------------------------------------------------------------------------->
21<?lua
22        dofile("../../media/levels/CuboidSpaceStation.lua")
23?>
24
25<!-- The following examples insert some space station in various ways, so I guess you will understand how to use my .lua file and the functions of it.
26--->
27
28<!-- Here I add a space station at position 0,0,0 without velocity and no rotation.
29---- The argument false is the value for ranSeed, which means the space station will be different each time.
30--->
31<?lua
32        createSpaceStation()
33?>
34
35
36
37<!-- Here I add a space station at position 0,0,-5000 without velocity and no rotation.
38--->
39<PositionableEntity scale=1 position="0,0,-5000">
40        <attached>
41                <?lua
42                        createSpaceStation()
43                ?>
44        </attached>
45</PositionableEntity>
46
47
48
49<!-- Here I add a space station at position 5000,0,0 with velocity 50,0,0 and a rotation so that the space station faces into the positive x-axis.
50--->
51<MovableEntity scale=1 position="5000,0,0" velocity="50,0,0" yaw=-90>
52        <attached>
53                <?lua
54                        createSpaceStation()
55                ?>
56        </attached>
57</MovableEntity>
58
59
60
61<!-- Here I add a space station at position -5000,0,0 without velocity but rotation around his own y-axis.
62--->
63<MovableEntity scale=1 position="-5000,0,0" rotationaxis="0,1,0" rotationrate=5>
64        <attached>
65                <?lua
66                        createSpaceStation()
67                ?>
68        </attached>
69</MovableEntity>
70
71
72
73<!-- Here I add a space station at position 10000,0,0 which will rotate around the position 0,0,0 and around his own axis in flight direction.
74---- To do so, I create a MovableEntity at position 0,0,0 and attach another MovableEntity with relative coordinates to the first MovableEntity 10000,0,0.
75---- I rotate the first MovableEntity, so the second Entity rotates around 0,0,0 in the x-,z-area with a radius 10000, and so does the space station,
76---- because the space station is attached to the second MovableEntity with relative coordinates 0,0,0 (this is defined in the .lua file).
77---- Then I rotate also the second MovableEntity around his own z-axis, so the space station rotates also around its own axis.
78--->
79<MovableEntity scale=1 position="0,0,0" rotationaxis="0,1,0" rotationrate=3>
80        <attached>
81                <MovableEntity scale=1 position="10000,0,0" rotationaxis="0,0,1" rotationrate=2>
82                        <attached>
83                                <?lua
84                                        -- Here I use the createSpaceStationPar(...) function, which has 8 arguments, see the .lua file at the top to understand them.
85                                        createSpaceStationPar(false,2,1,2,1,2,1,50)
86                                ?>
87                        </attached>
88                </MovableEntity>
89        </attached>
90</MovableEntity>
91
92
93
94<!-------------------------------------------------------------------------------------------------------------------------------------------------------------------------->
95
96
97
98        <ParticleSpawner position="0,0,0" source="Orxonox/BigExplosion1part3" lifetime=2.0 loop=0 autostart=0>
99      <events>
100        <spawn>
101          <EventTrigger delay=1>
102            <events>
103              <trigger>
104                <SpawnPoint position="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
105              </trigger>
106            </events>
107          </EventTrigger>
108        </spawn>
109      </events>
110    </ParticleSpawner>
111
112  </Scene>
113</Level>
Note: See TracBrowser for help on using the repository browser.