Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/presentationFS15/data/levels/scriptController.oxw @ 10619

Last change on this file since 10619 was 10499, checked in by maxima, 10 years ago

New XMLPort for ControllerDirector. The name of the script can now be set via XMLPort. Level scriptController plays the new Script 'presentation.lua'

  • Property svn:eol-style set to native
File size: 2.0 KB
Line 
1<!-- First levelFile of mkronig and samuezu. It was copied from dockingToASpaceStation.oxw and modified a little bit -->
2<LevelInfo
3 name = "Scriptable Controller"
4 description = "Showcase for Scriptable Controller"
5 tags = "showcase"
6 screenshot = "emptylevel.png"
7/>
8
9<?lua
10  include("stats.oxo")
11  include("HUDTemplates3.oxo")
12  include("templates/lodInformation.oxt")
13?>
14
15<?lua
16  include("templates/spaceshipEscort.oxt")
17?>
18
19<Level
20  gametype = Deathmatch
21>
22  <templates>
23    <Template link=lodtemplate_default />
24  </templates>
25
26  <Scene
27    ambientlight = "0.5, 0.5, 0.5"
28    skybox       = "Orxonox/Starbox"
29    negativeWorldRange = "-100000, -100000, -100000"
30    positiveWorldRange = " 100000,  100000,  100000"
31    gravity      = "0,0,0"
32    hasPhysics   = true
33  >
34
35    <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0,1.0,1.0,0.5" specular="1.0, 0.9, 0.9, 1.0"/>
36
37    <SpawnPoint team=0 position="3200,0,0" lookat="2800,0,0" spawnclass=SpaceShip pawndesign=spaceshipescort />
38
39    <Billboard position="2500,0,0" material="Flares/ringflare2" colour="0.2,0.4,0.8" scale=10 />
40    <DistanceTrigger position="2500,0,0" distance="200" target="Pawn"
41      beaconMode="exclude" targetname="bcnDestroyer" name="takeControl"
42    />
43
44    <StaticEntity position  = "2000,500,2000" mass=10000 collisionType=static >
45      <attached>
46        <Model mesh="HydroHarvester.mesh" mass=10 position="0,0,0" scale=10 />
47      </attached>
48    </StaticEntity>
49
50    <StaticEntity position  = "-1000,3000,-1000" mass=10000 collisionType=static >
51      <attached>
52        <Model mesh="HydroHarvester.mesh" mass=10 position="0,0,0" scale=80 />
53      </attached>
54    </StaticEntity>
55
56<!-- ControllerDirector waits for the event takeControl to attach a new Controller -->
57    <ControllerDirector position="0,0,0" scriptname="presentation">
58        <events>
59            <takeControl>
60                <EventListener event="takeControl" />
61            </takeControl>
62        </events>
63    </ControllerDirector>
64
65  </Scene>
66</Level>
67
Note: See TracBrowser for help on using the repository browser.