Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5257


Ignore:
Timestamp:
Oct 31, 2008, 3:32:12 AM (16 years ago)
Author:
landauf
Message:

added some EventListeners and an EventDispatcher

File:
1 edited

Legend:

Unmodified
Added
Removed
  • data/media/levels/sample2.oxw

    r5256 r5257  
    5959    </MovableEntity>
    6060
     61
    6162    <!--ParticleSpawner position="-500,0,-200" source="Orxonox/BigExplosion1part1" lifetime=3.0 loop=1 />
    6263    <ParticleSpawner position="-500,0,-300" source="Orxonox/BigExplosion1part1" lifetime=3.0 loop=1 />
     
    6566    <ParticleSpawner position="-500,0,-600" source="Orxonox/BigExplosion1part1" lifetime=2.5 loop=1 /-->
    6667
     68
    6769    <ParticleSpawner position="0,0,100" source="Orxonox/BigExplosion1part3" lifetime=2.0 loop=0 autostart=0>
    6870      <events>
    6971        <spawn>
    70           <SpawnPoint position="0,0,100" spawnclass=SpaceShip pawndesign=spaceshipassff />
     72          <EventTrigger delay=1>
     73            <events>
     74              <trigger>
     75                <SpawnPoint position="0,0,100" spawnclass=SpaceShip pawndesign=spaceshipassff />
     76              </trigger>
     77            </events>
     78          </EventTrigger>
    7179        </spawn>
    7280      </events>
    7381    </ParticleSpawner>
    7482
    75     <ParticleEmitter position="200,0,0" source="Orxonox/fire3" active=false>
     83
     84    <ParticleEmitter name=fireright position="200,0,0" source="Orxonox/fire3" active=false>
    7685      <events>
    7786        <activity>
    78           <DistanceTrigger position="200,0,0" distance=100 target="ControllableEntity" />
     87          <DistanceTrigger name=firetrigger1 position="200,0,0" distance=100 target="ControllableEntity" />
    7988        </activity>
    8089      </events>
    8190    </ParticleEmitter>
    82     <ParticleEmitter position="-200,0,0" source="Orxonox/fire3" active=false>
     91    <ParticleEmitter name=fireleft position="-200,0,0" source="Orxonox/fire3" active=false>
    8392      <events>
    8493        <activity>
    85           <DistanceTrigger position="-200,0,0" distance=100 target="ControllableEntity" />
     94          <DistanceTrigger name=firetrigger2 position="-200,0,0" distance=100 target="ControllableEntity" />
    8695        </activity>
    8796      </events>
    8897    </ParticleEmitter>
     98    <ParticleEmitter name=firecenter position="0,0,0" source="Orxonox/fire3" active=false>
     99      <events>
     100        <activity>
     101          <EventListener event=firetrigger1 />
     102          <EventListener event=firetrigger2 />
     103        </activity>
     104      </events>
     105    </ParticleEmitter>
     106
     107
     108    <EventDispatcher>
     109      <targets>
     110        <EventTarget name=fireright />
     111        <EventTarget name=firecenter />
     112        <EventTarget name=fireleft />
     113      </targets>
     114      <events>
     115        <activity>
     116          <DistanceTrigger position="0,0,200" distance=100 target="ControllableEntity" />
     117        </activity>
     118      </events>
     119    </EventDispatcher>
     120
    89121
    90122    <Model position="0,50,0" scale=3 mesh="assff.mesh">
     
    95127      </events>
    96128    </Model>
     129
    97130
    98131    <Model position="0,0,200" scale=10 mesh="ast2.mesh" shadow=true />
Note: See TracChangeset for help on using the changeset viewer.