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" stayActive="true" |
---|
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 | |
---|
57 | <StaticEntity position = "3000,0,0" mass=10000 collisionType=static > |
---|
58 | <attached> |
---|
59 | <Model mesh="cube_green.mesh" mass=10 position="0,0,0" scale=10 /> |
---|
60 | </attached> |
---|
61 | </StaticEntity> |
---|
62 | |
---|
63 | <StaticEntity position = "2000,0,0" mass=10000 collisionType=static > |
---|
64 | <attached> |
---|
65 | <Model mesh="cube_green.mesh" mass=10 position="0,0,0" scale=10 /> |
---|
66 | </attached> |
---|
67 | </StaticEntity> |
---|
68 | |
---|
69 | <StaticEntity position = "2500,500,0" mass=10000 collisionType=static > |
---|
70 | <attached> |
---|
71 | <Model mesh="cube_green.mesh" mass=10 position="0,0,0" scale=10 /> |
---|
72 | </attached> |
---|
73 | </StaticEntity> |
---|
74 | |
---|
75 | <!-- ControllerDirector waits for the event takeControl to attach a new Controller --> |
---|
76 | <ControllerDirector position="0,0,0" scriptname="testscript"> |
---|
77 | <events> |
---|
78 | <takeControl> |
---|
79 | <EventListener event="takeControl" /> |
---|
80 | </takeControl> |
---|
81 | </events> |
---|
82 | </ControllerDirector> |
---|
83 | |
---|
84 | </Scene> |
---|
85 | </Level> |
---|
86 | |
---|