Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/mergeFS18/data/levels/ScriptableControllerTestMoveKillDrone.oxw @ 12264

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

added scriptable controller

File size: 1.2 KB
RevLine 
[11928]1<LevelInfo
[12006]2 name = "Scriptable Controller Moving and Killing Pawn"
3 description = "Demonstrates moving and killing a drone by using a lua script."
[11928]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
[12006]20<Level script="scripts/ScriptableControllerMoveKill.lua">
[11928]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
[12006]35  <ScriptableControllerDrone id="dummy" position="0,0,0">
[11928]36    <attached>
37      <Model scale="10" mesh="drone.mesh"/>
38    </attached>
[11932]39    <collisionShapes>
40      <BoxCollisionShape position="0,0,0" halfExtents="10, 10, 10" />
41    </collisionShapes>
[12006]42  </ScriptableControllerDrone>
[11928]43   
44 
45
46
47  </Scene>
48</Level>
Note: See TracBrowser for help on using the repository browser.