Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 42 and Version 43 of content/LevelHowTo


Ignore:
Timestamp:
Dec 22, 2013, 10:50:12 AM (11 years ago)
Author:
jo
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • content/LevelHowTo

    v42 v43  
    269269Another problem might be that the distance trigger is triggered by another Pawn/Spaceship/... (whatever is specified as target). To exclude certain objects to activate the trigger or to only allow a specific object to activate the trigger, the DistanceTriggerBeacon was created.
    270270
     271{{{
     272#!xml
     273<!-- This trigger CANNOT be triggered -->
     274<DistanceTrigger position="10,-202, -42" distance="800" target="Spaceship" beaconMode="exclude" targetname="stupidSpaceship" name="dockMe"/>
     275
     276<!-- By this Spaceship -->
     277<SpaceShip position  = "10,-202, -42" ... >
     278    <attached>
     279        <DistanceTriggerBeacon name="stupidSpaceship" />
     280        <Model mesh="HydroHarvester.mesh" mass=10 position="0,0,0" scale=50 />
     281    </attached>
     282    <collisionShapes>
     283        <BoxCollisionShape  position="-560,0,0" halfExtents="115,100,245" />
     284        < ... >
     285    </collisionShapes>
     286</SpaceShip>
     287}}}
     288
     289
     290
     291{{{
     292#!xml
     293<!-- This trigger can ONLY be triggered -->
     294<DistanceTrigger position="10,-202, -42" distance="800" target="Spaceship" beaconMode="identify" targetname="coolSpaceship" name="dockMe"/>
     295
     296<!-- By this Spaceship -->
     297<SpaceShip position  = "10,-202, -42" ... >
     298    <attached>
     299        <DistanceTriggerBeacon name="coolSpaceship" />
     300        <Model mesh="HydroHarvester.mesh" mass=10 position="0,0,0" scale=50 />
     301    </attached>
     302    <collisionShapes>
     303        <BoxCollisionShape  position="-560,0,0" halfExtents="115,100,245" />
     304        < ... >
     305    </collisionShapes>
     306</SpaceShip>
     307
     308}}}
     309
    271310== Quests ==
    272311Example: ../data/levels/quests.oxw