Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/menue/data/levels/fightInOurBack.oxw @ 9022

Last change on this file since 9022 was 8958, checked in by baermatt, 13 years ago

Removing unused Level attributes.

  • Property svn:eol-style set to native
File size: 23.6 KB
Line 
1<LevelInfo
2  name = "Fight in our Back"
3  description = "Our fleet is far ahead of us. We need to get rid of all the enemies in its back, because we do not want our enemies to attack from everywhere. So let us clear this Sector!"
4  tags = "mission"
5  screenshot = "fightinourback.png"
6/>
7
8<?lua
9    include("stats.oxo")
10    include("HUDTemplates3.oxo")
11    include("templates/lodInformation.oxt")
12    include("templates/spaceshipAssff.oxt")
13    include("templates/spaceshipPirate.oxt")
14    include("templates/spaceshipTransporter.oxt")
15?>
16
17<!--*****************************************************************************************************************************************************************************************-->
18<!--Including Template for triggering on player-->
19
20<Template name=spaceshipassffplayer>
21  <SpaceShip
22   hudtemplate            = spaceshiphud
23   camerapositiontemplate = spaceshipassffcameras
24   spawnparticlesource    = "Orxonox/fairytwirl"
25   spawnparticleduration  = 3
26   explosionchunks        = 6
27
28   health            = 100
29   maxhealth         = 200
30   initialhealth     = 100
31
32   primaryThrust     = 100;
33   auxilaryThrust    = 30;
34   rotationThrust    = 25;
35
36   collisionType     = "dynamic"
37   mass              = 100
38   linearDamping     = 0.7
39   angularDamping    = 0.9999999
40  >
41      <engines>
42      <MultiStateEngine position=" 7.6, 0, 6" template=spaceshipassffengine />
43      <MultiStateEngine position="-7.6, 0, 0" template=spaceshipassffengine />
44    </engines>
45    <attached>
46      <Model position="0,0,0" yaw=90 pitch=-90 roll=0 scale=4 mesh="assff.mesh" />
47      <BlinkingBillboard position="17,-1.5,0" material="Examples/Flare" colour="1.0, 0.5, 0.3" amplitude=0.1 frequency=0.5 quadratic=1 />
48      <BlinkingBillboard position="-17,-1.5,0" material="Examples/Flare" colour="0.5, 1.0, 0.3" amplitude=0.1 frequency=0.5 phase=180 quadratic=1 />
49      <DistanceTriggerBeacon name="PlayerDistanceTrigger" /> <!--added DistanceTrigger-->
50    </attached>
51    <collisionShapes>
52      <BoxCollisionShape position="0,0,0"      halfExtents="10, 3, 5" />
53      <BoxCollisionShape position="13,-1.3,0"  halfExtents="3, 1, 2" />
54      <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" />
55      <BoxCollisionShape position="0,0,7"      halfExtents="3, 2, 2" />
56      <BoxCollisionShape position="0,0.1,-11"  halfExtents="2.2, 1.8, 6" />
57      <BoxCollisionShape position="0,0.1,-19"  halfExtents="1.4, 1, 2" />
58    </collisionShapes>
59<?lua
60  include("includes/weaponSettingsAssff.oxi")
61?>
62  </SpaceShip>
63</Template>
64<Template name=spaceshipassffengine baseclass=MultiStateEngine>
65  <MultiStateEngine
66   boostfactor    = 2
67
68   speedfront     = 150
69   speedback      =  50
70   speedleftright =  50
71   speedupdown    =  50
72
73   defEngineSndNormal = "sounds/Engine_low.ogg"
74   defEngineSndBoost = "sounds/Engine_high.ogg"
75
76   accelerationfront     = 500
77   accelerationbrake     = 500
78   accelerationback      =  125
79   accelerationleftright =  125
80   accelerationupdown    =  125
81  >
82      <EffectContainer condition="idle">
83      <WorldSound mainstate="activity" source="sounds/Engine_idle.ogg" looping=1 active=false/>
84    </EffectContainer>
85    <EffectContainer condition="not idle">
86      <FadingBillboard mainstate=activity active=false scale=0.1 position="7.6, 0, 9" colour="0.2, 0.65, 1.0, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
87      <FadingBillboard mainstate=activity active=false scale=0.1 position="-7.6, 0, 9" colour="0.2, 0.65, 1.0, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
88    </EffectContainer>
89    <EffectContainer condition="normal or brake">
90
91    </EffectContainer>
92    <EffectContainer condition="normal or boost">
93      <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 7.6, 0, 6" colour="0.2, 0.65, 1.0, 1.0" width=15 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
94      <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-7.6, 0, 6" colour="0.2, 0.65, 1.0, 1.0" width=15 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
95    </EffectContainer>
96    <EffectContainer condition="boost">
97      <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 7.6, 0, 6" colour="0.6, 0.75, 0.8, 0.7" width=40 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
98      <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-7.6, 0, 6" colour="0.6, 0.75, 0.8, 0.7" width=40 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
99    </EffectContainer>
100<!--    <EffectContainer condition="brake">
101      <FadingBillboard mainstate=activity active=false scale=0.3 position=" 8, 0, 6" colour="0.5, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
102      <FadingBillboard mainstate=activity active=false scale=0.3 position="-8, 0, 6" colour="0.5, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
103      <FadingBillboard mainstate=activity active=false scale=0.15 position=" 8, 0, 6" colour="1.0, 0.0, 0.0, 1.0" material="Flares/backlightflare" turnontime=0.5 turnofftime=0.5 />
104      <FadingBillboard mainstate=activity active=false scale=0.15 position="-8, 0, 6" colour="1.0, 0.0, 0.0, 1.0" material="Flares/backlightflare" turnontime=0.5 turnofftime=0.5 />
105    </EffectContainer>
106-->
107  </MultiStateEngine>
108</Template>
109<!--*****************************************************************************************************************************************************************************************-->
110<Level
111 gametype = "TeamDeathmatch"
112>
113  <templates>
114    <Template link=lodtemplate_default />
115  </templates>
116  <?lua include("includes/notifications.oxi") ?>
117
118    <!-- Ausgang: Szene ===> ambientlight/skybox -->
119    <Scene
120     ambientlight="0.8,0.8,0.8"
121     skybox="Orxonox/skypanoramagen1"
122    >
123
124        <Script code="showGUI NotificationLayer false true" needsGraphics="true" />
125
126        <!--Light: noch zu aendern -->
127        <Light type=directional position="0,0,0" direction="0, 0, 0" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 1.0, 0.9" />
128
129
130<!--*****************************************************************************************************************************************************************************************-->
131<!--Quests-->
132    <GlobalQuest id="FightInOurBack.DiscoveryMission_">
133        <QuestDescription title="Discovery mission" description="Your team has to scout out this sector." failMessage="You failed!" completeMessage="You won. You have reached the end of this level." />
134        <subquests>
135            <GlobalQuest id="FightInOurBack.FollowYourGroupLeader">
136                <QuestDescription title="Follow your group leader" description="Your task is to follow the team leader and to destroy all the enemy spaceships on your way!" failMessage="You failed!" completeMessage="Good job!" />
137            </GlobalQuest>
138            <GlobalQuest id="FightInOurBack.TransportersAhead">
139                <QuestDescription title="Transporters ahead" description="This is a lucky day for us. We have found supplies that the enemy is transporting in these Transporters. We have to destroy them." failMessage="You failed!" completeMessage="Good job!" />
140            </GlobalQuest>
141            <GlobalQuest id="FightInOurBack.TheySentUsAssistance">
142                <QuestDescription title="They sent us assistance" description="The transporters will surely be heavily protected but our base sent us assistance. It should now be easier to destroy them." failMessage="You failed" completeMessage="Good job!" />
143            </GlobalQuest>
144        </subquests>
145    </GlobalQuest>
146
147
148<!--Quests____END-->
149<!--*****************************************************************************************************************************************************************************************-->
150
151
152<!--Player's Spawnpoints -->
153        <!--Spieler Spawnpoint ===> position/direction--> <!-- funktioniert noch nicht ab naechtem Mal wahrscheinlich-->
154        <SpawnPoint position="0,50,25" direction="2000,0,-1000" spawnclass=SpaceShip pawndesign=spaceshipassffplayer team=0 active="true" >
155            <events>
156                <activity>
157                    <EventListener event="activateFirstSpawnpoint" />
158                </activity>
159            </events>
160        </SpawnPoint>
161
162        <SpawnPoint position="10000,0,3000" direction="2000,0,-1000" spawnclass=SpaceShip pawndesign=spaceshipassffplayer team=0 active="false" >
163            <events>
164                <activity>
165                    <EventListener event="activateSecondSpawnpoint" />
166                </activity>
167            </events>
168        </SpawnPoint>
169
170<!--Player's Spawnpoint END-->
171
172<!--Launching Quests -->
173        <QuestEffectBeacon position="0,50,25" times="1">
174            <effects>
175                <AddQuest questId="FightInOurBack.DiscoveryMission_" />
176                <AddQuest questId="FightInOurBack.FollowYourGroupLeader" />
177            </effects>
178            <events>
179                <execute>
180                    <EventListener event="FightInOurBack_MainStart_FollowStart"/>
181                </execute>
182            </events>
183            <attached>
184                <DistanceTrigger name="FightInOurBack_MainStart_FollowStart" position="0,0,0" distance="50" target="Pawn" beaconMode="identify" targetname="PlayerDistanceTrigger" />
185                <!--<Billboard position="0,0,0" colour="1.0,1.0,1.0" material="Examples/Flare" />-->
186            </attached>
187        </QuestEffectBeacon>
188
189        <QuestEffectBeacon position="8000,0,3100" times=1 >
190            <effects>
191                <AddQuest questID="FightInOurBack.TransportersAhead" />
192                <AddQuest questID="FightInOurBack.TheySentUsAssistance" />
193                <CompleteQuest questID="FightInOurBack.FollowYourGroupLeader" />
194            </effects>
195            <events>
196                <execute>
197                    <EventListener event="FightInOurBack_FollowEnd_DTranspStart_AssisStart" />
198                </execute>
199            </events>
200            <attached>
201                <!--<Billboard position="0,0,0" colour="1,1,1" material="Examples/Flare" />-->
202                <DistanceTrigger name="FightInOurBack_FollowEnd_DTranspStart_AssisStart" position="0,0,0" distance="1000" target="Pawn" beaconMode="identify" targetname="PlayerDistanceTrigger" stayactive=1 activations=1 />
203            </attached>
204        </QuestEffectBeacon>
205
206<!---->
207
208<!--Launching Quests END -->
209
210<!--Creating Transporters OK-->
211
212
213<?lua for i=0,0,1 do
214x=800
215health=2050
216?>
217    <!--Transporter 1-->
218    <EventTrigger name="activateTeam1No1" acitvations=1 stayactive="true">
219    <events>
220    <trigger>
221        <SpaceShip position="<?lua print(3800-i*x) ?>,0,3000" lookat="<?lua print(4800-i*x) ?>,0,4000" health="<?lua print(health) ?>" maxhealth="<?lua print(health) ?>" initialhealth="<?lua print(health) ?>" >
222            <templates>
223                   <Template link=spaceshipTransporter />
224             </templates>
225             <controller>
226                <WaypointPatrolController alertnessradius=1000 team=1>
227                    <waypoints>
228                        <Model mesh="cube.mesh" scale=0 position="<?lua print(14800-i*x) ?>,0,3000"/>
229                    </waypoints>
230                </WaypointPatrolController>
231             </controller>
232        </SpaceShip><!---->
233    </trigger>
234    </events>
235    </EventTrigger>
236<?lua end ?>
237
238
239<?lua for j=0,1,1 do
240health=1600
241x=800
242z=j*300
243?>
244    <!--Transporter 2,3-->
245    <EventTrigger name="activateTeam1No1" acitvations=1 stayactive="true">
246    <events>
247    <trigger>
248        <SpaceShip position="<?lua print(2600+x) ?>,0,<?lua print(3150-z) ?>" lookat="<?lua print(3500+x) ?>,0,<?lua print(4150-z) ?>" health="<?lua print(health) ?>" maxhealth="<?lua print(health) ?>" initialhealth="<?lua print(health) ?>" >
249            <templates>
250                   <Template link=spaceshipTransporter />
251             </templates>
252             <controller>
253                <WaypointPatrolController alertnessradius=1000 team=1>
254                    <waypoints>
255                        <Model mesh="cube.mesh" scale=0 position="<?lua print(13500+x) ?>,0,<?lua print(3150-z) ?>"/>
256                    </waypoints>
257                </WaypointPatrolController>
258             </controller>
259        </SpaceShip><!---->
260    </trigger>
261    </events>
262    </EventTrigger>
263<?lua end ?>
264
265
266<!--Creating Transporters END _-->
267
268<!--Creating player's team OK-->
269        <!--Spaceships team 0 (player:team=0)-->
270        <SpaceShip position="50,0,0" lookat="2050,0,-1000" health="500" maxhealth="500" initialhealth="500" >
271             <templates>
272                  <Template link=spaceshipassff />
273            </templates>
274             <controller>
275                <WaypointPatrolController alertnessradius=2000 team=0 >
276                    <waypoints>
277                        <Model mesh="cube.mesh" scale=0 position="2050,0,-1000" />
278                        <Model mesh="cube.mesh" scale=0 position="6050,0,0" />
279                        <Model mesh="cube.mesh" scale=0 position="10050,0,3000" />
280                        <Model mesh="cube.mesh" scale=0 position="3050,0,3000" />
281                        <Model mesh="cube.mesh" scale=0 position="-4050,0,3000" />
282                    </waypoints>
283                </WaypointPatrolController>
284             </controller>
285        </SpaceShip>
286        <!--Second Spaceship team 0 (player: team 0)-->
287        <SpaceShip position="0,0,100" lookat="2000,0,-950" health="500" maxhealth="400" initialhealth="400" >
288             <templates>
289                  <Template link=spaceshipassff />
290            </templates>
291             <controller>
292                <WaypointPatrolController alertnessradius=2000 team=0 >
293                    <waypoints>
294                        <Model mesh="cube.mesh" scale=0 position="2000,0,-900" />
295                        <Model mesh="cube.mesh" scale=0 position="6000,0,0" />
296                        <Model mesh="cube.mesh" scale=0 position="10000,0,3100" />
297                        <Model mesh="cube.mesh" scale=0 position="3000,0,3100" />
298                        <Model mesh="cube.mesh" scale=0 position="-4000,0,3100"/>
299                    </waypoints>
300                </WaypointPatrolController>
301             </controller>
302        </SpaceShip>
303        <!--third Spaceship team 0 (player: team 0)-->
304        <SpaceShip position="0,0,-100" lookat="2000,0,-1050" health="500" maxhealth="400" initialhealth="400" >
305             <templates>
306                  <Template link=spaceshipassff />
307            </templates>
308             <controller>
309                <WaypointPatrolController alertnessradius=2000 team=0 >
310                    <waypoints>
311                        <Model mesh="cube.mesh" scale=0 position="2000,0,-1100" />
312                        <Model mesh="cube.mesh" scale=0 position="6000,0,-100" />
313                        <Model mesh="cube.mesh" scale=0 position="10000,0,2900" />
314                        <Model mesh="cube.mesh" scale=0 position="3000,0,2900" />
315                        <Model mesh="cube.mesh" scale=0 position="-4000,0,2900" />
316                    </waypoints>
317                </WaypointPatrolController>
318             </controller>
319        </SpaceShip>
320<!--Creating player's team END  -->
321
322
323<!--Asteroids (field OK -->
324
325<?lua for i=0,100,1 do
326x=math.random(250,4000)
327y=math.random(-500,500)
328z=math.random(1000,2000)
329scale=math.random(20,70)
330?>
331<MovableEntity collisionType=kinematic linearDamping=0.8 angularDamping=0 mass="<?lua print(scale * 5) ?>" position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" rotationaxis="<?lua print(math.random()) ?>,<?lua print(math.random()) ?>,<?lua print(math.random()) ?>" rotationrate="<?lua print(math.random()*15) ?>">
332    <attached>
333        <Model scale="<?lua print(scale) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false/>
334    </attached>
335    <collisionShapes>
336        <SphereCollisionShape radius="<?lua print(scale * 3) ?>" />
337    </collisionShapes>
338</MovableEntity>
339<?lua end ?>
340
341<!--Asteroids (field) END -->
342
343<!--Asteroids (random) END OK-->
344
345<?lua for i=0,150,1 do
346x=math.random(-8000,8000)
347y=math.random(-8000,8000)
348z=math.random(-8000,8000)
349?>
350<MovableEntity collisionType=kinematic linearDamping=0.8 angularDamping=0 mass="<?lua print(scale * 5) ?>" position="<?lua print(x) ?>,<?lua print(y) ?>,<?lua print(z) ?>" rotationaxis="<?lua print(math.random()) ?>,<?lua print(math.random()) ?>,<?lua print(math.random()) ?>" rotationrate="<?lua print(math.random()*15) ?>" >
351    <attached>
352        <Model scale="<?lua print(math.random(20,70)) ?>" mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh" shadow=false/>
353    </attached>
354    <collisionShapes>
355            <SphereCollisionShape radius="<?lua print(scale * 3) ?>" />
356        </collisionShapes>
357</MovableEntity>
358<?lua end ?>
359
360<!--Asteroids (random) END -->
361
362<!--Creating spaceships (player's team) OK-->
363<!---->
364<!--Trigger to activate this Team (TEAM NO 1)-->
365    <DistanceTrigger name="activateTeam0No1" position="8000,0,3100" distance="1000" target="Pawn" beaconMode="identify" targetname="PlayerDistanceTrigger" activations="1" stayactive="true" />
366
367<!--TEAM NO 1 (activationType : distance || killing a spaceship what belongs to TEAM 0 NO 0)-->
368<?lua for i=0,14,1 do
369x=math.random(-500,500)
370y=math.random(-300,300)
371z=math.random(-300,300)
372?>
373    <EventTrigger name="activateTeam0No1" activations=1 stayactive="true">
374        <events>
375            <trigger>
376                <SpaceShip position="<?lua print(x+4500) ?>,<?lua print(y) ?>,<?lua print(z+6000) ?>" lookat="<?lua print(4000+x) ?>,<?lua print(y) ?>,<?lua print(z+3000) ?>">
377                    <templates>
378                        <Template link=spaceshipassff />
379                    </templates>
380                    <controller>
381                        <WaypointPatrolController alertnessradius=2100 team=0 active=false>
382                            <waypoints>
383                                <Model mesh="cube.mesh" scale=0 position="<?lua print(4500+x) ?>,<?lua print(y) ?>,<?lua print(z+3000) ?>" />
384                                <Model mesh="cube.mesh" scale=0 position="<?lua print(x-4000) ?>,<?lua print(y) ?>,<?lua print(z+3000) ?>" />
385                            </waypoints>
386                            <events>
387                                <activity>
388                                    <EventListener event="activateTeam0No1" />
389                                </activity>
390                            </events>
391                        </WaypointPatrolController>
392                    </controller>
393                </SpaceShip>
394            </trigger>
395        </events>
396    </EventTrigger>
397
398
399<?lua end ?>
400
401<!---->
402<!--Creating spaceships (player's team) END -->
403
404<!--Creating spaceships (enemy) OK-->
405<!---->
406<!--TEAM 1 NO 1 (activationType : killing a Transporter || killing a spaceship what belongs to TEAM 1 NO 1)-->
407<?lua for i=0,11,1 do
408x=math.random(-500,500)
409y=math.random(-300,300)
410z=math.random(-300,300)
411?>
412    <EventTrigger name="activateTeam1No1" activations=1 stayactive="true" >
413        <events>
414            <trigger>
415                <SpaceShip position="<?lua print(x+3800) ?>,<?lua print(y+3000) ?>,<?lua print(z+3000) ?>" lookat="<?lua print(4000+x) ?>,<?lua print(y) ?>,<?lua print(z+3000) ?>">
416                    <templates>
417                        <Template link=spaceshippirate />
418                    </templates>
419                    <controller>
420                        <WaypointPatrolController alertnessradius=5000 team=1 active=false>
421                            <waypoints>
422                                <Model mesh="cube.mesh" scale=0 position="<?lua print(4000+x) ?>,<?lua print(y) ?>,<?lua print(z+3000) ?>" />
423                            </waypoints>
424                            <events>
425                                <activity>
426                                    <EventListener event="activateTeam1No1" />
427                                </activity>
428                            </events>
429                        </WaypointPatrolController>
430                    </controller>
431                </SpaceShip>
432            </trigger>
433        </events>
434    </EventTrigger>
435
436<?lua end ?>
437<!---->
438<!--Creating spaceships (enemy) END -->
439
440<!--Enemies on the way to the transporters -->
441
442<?lua for i=0,1,1 do
443z=math.random(-300,300)
444?>
445<!--NO 1-->
446        <SpaceShip position="<?lua print(5900+i*100) ?>,0,-3000" lookat="2500,0,-1000">
447            <templates>
448                <Template link=spaceshippirate/>
449            </templates>
450            <controller>
451                <WaypointPatrolController alertnessRadius=1500 team=1>
452                    <waypoints>
453                        <Model mesh="cube.mesh" scale=0 position="<?lua print(2500+100*i) ?>,0,-1000" />
454                    </waypoints>
455                </WaypointPatrolController>
456            </controller>
457        </SpaceShip>
458
459<!--NO 4-->
460        <SpaceShip position="<?lua print(9000) ?>,13000,<?lua print(z*i+3000) ?>" lookat="1000,0,3000">
461            <templates>
462                <Template link=spaceshippirate/>
463            </templates>
464            <controller>
465                <WaypointPatrolController alertnessRadius=1500 team=1>
466                    <waypoints>
467                        <Model mesh="cube.mesh" scale=0 position="<?lua print(10000) ?>,0,<?lua print(3000+z*i) ?>" />
468                    </waypoints>
469                </WaypointPatrolController>
470            </controller>
471        </SpaceShip>
472<?lua end ?>
473
474
475<!--NO 3-->
476        <SpaceShip position="<?lua print(200+13000) ?>,0,10000" lookat="8000,0,1000">
477            <templates>
478                <Template link=spaceshippirate/>
479            </templates>
480            <controller>
481                <WaypointPatrolController alertnessRadius=1500 team=1>
482                    <waypoints>
483                        <Model mesh="cube.mesh" scale=0 position="<?lua print(200+8000) ?>,0,1000" />
484                    </waypoints>
485                </WaypointPatrolController>
486            </controller>
487        </SpaceShip>
488<?lua for i=0,1,1 do ?>
489        <SpaceShip position="<?lua print(i*400+13000) ?>,100,10000" lookat="8000,0,1000">
490            <templates>
491                <Template link=spaceshippirate/>
492            </templates>
493            <controller>
494                <WaypointPatrolController alertnessRadius=1500 team=1>
495                    <waypoints>
496                        <Model mesh="cube.mesh" scale=0 position="<?lua print(i*400+8000) ?>,0,1000" />
497                    </waypoints>
498                </WaypointPatrolController>
499            </controller>
500        </SpaceShip>
501<?lua end ?>
502
503
504<!--NO 2-->
505<?lua for i=0,3,1 do ?>
506        <SpaceShip position="<?lua print(math.random(5500,6500)+2000) ?>,0,1000" lookat="2500,0,-1000">
507            <templates>
508                <Template link=spaceshippirate/>
509            </templates>
510            <controller>
511                <WaypointPatrolController alertnessRadius=1500 team=1>
512                    <waypoints>
513                        <Model mesh="cube.mesh" scale=0 position="<?lua print(math.random(5750,6250)+2000) ?>,0,1250" />
514                        <Model mesh="cube.mesh" scale=0 position="<?lua print(math.random(5750,6250)+2000) ?>,250,1000" />
515                        <Model mesh="cube.mesh" scale=0 position="<?lua print(math.random(5750,6250)+2000) ?>,0,1000" />
516                    </waypoints>
517                </WaypointPatrolController>
518            </controller>
519        </SpaceShip>
520<?lua end ?>
521
522<!--Creating spaceships (enemy) END -->
523
524<Trigger invert=true name="activateFirstSpawnpoint">
525    <DistanceTrigger name="activateSecondSpawnpoint" position="10000,0,3000" distance="1000" target="Pawn" beaconMode="identify" targetname="PlayerDistanceTrigger" activations="1" stayactive="true" />
526</Trigger>
527
528    </Scene>
529</Level>
Note: See TracBrowser for help on using the repository browser.