Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/Boxhead_FS19/data/levels/ScriptableControllerTestMoveKillDrone.oxw @ 12397

Last change on this file since 12397 was 12028, checked in by merholzl, 6 years ago

added scriptable controller

File size: 1.2 KB
Line 
1<LevelInfo
2 name = "Scriptable Controller Moving and Killing Pawn"
3 description = "Demonstrates moving and killing a drone by using a lua script."
4 tags = "test"
5 screenshot = "emptylevel.png"
6/>
7
8<?lua
9  include("stats.oxo")
10  include("HUDTemplates3.oxo")
11  include("templates/lodInformation.oxt")
12  include("templates/HeavyCruiser.oxt")
13?>
14
15<?lua
16  include("templates/spaceshipEscort.oxt")
17  include("templates/endurancetest_template.oxt")
18?>
19
20<Level script="scripts/ScriptableControllerMoveKill.lua">
21  <templates>
22    <Template link=lodtemplate_default />
23  </templates>
24  <?lua include("includes/notifications.oxi") ?>
25
26  <Scene
27    ambientlight = "0.8, 0.8, 0.8"
28    skybox       = "Orxonox/Starbox"
29  >
30
31    <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"/>
32    <SpawnPoint team=0 position="100,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipescort />
33
34
35  <ScriptableControllerDrone id="dummy" position="0,0,0">
36    <attached>
37      <Model scale="10" mesh="drone.mesh"/>
38    </attached>
39    <collisionShapes>
40      <BoxCollisionShape position="0,0,0" halfExtents="10, 10, 10" />
41    </collisionShapes>
42  </ScriptableControllerDrone>
43   
44 
45
46
47  </Scene>
48</Level>
Note: See TracBrowser for help on using the repository browser.