Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 9, 2011, 4:26:37 PM (13 years ago)
Author:
sven
Message:

Added simple GUI for docking..

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/dockingsystem2/data/levels/docking.oxw

    r8382 r8434  
    2727    <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" />
    2828
     29
     30
    2931    <?lua for i = 1, 10, 1 do ?>
    30       <SpawnPoint position="<?lua print(math.random() * 500 - 250) ?>,<?lua print(math.random() * 500 - 250) ?>,<?lua print(math.random() * 500 - 250) ?>" lookat="0,0,0" spawnclass="SpaceShip" pawndesign="spaceshipassff" />
     32      <SpawnPoint position="<?lua print(math.random() * 200 - 100) ?>,<?lua print(math.random() * 200 - 100) ?>,<?lua print(math.random() * 200 - 100) ?>" lookat="0,0,0" spawnclass="SpaceShip" pawndesign="spaceshipassff" />
    3133    <?lua end ?>
    3234
    33     <Dock position="-50,-100,50">
    34             <effects>
    35                 <DockToShip target="theDestroyer" />
    36             </effects>
    37             <events>
    38                 <execute>
    39                     <EventListener event="dockMe" />
    40                 </execute>
    41             </events>
    42             <attached>
    43                 <DistanceTrigger position="0,0,0" distance="20" target="Pawn" beaconMode="exclude" targetname="destroyerBeacon" name="dockMe" />
    44                 <Billboard material="Examples/Flare" colour="1.0, 0, 0" />
    45             </attached>
    46         </Dock>
    47 
    48 
    49    
     35
     36
     37
     38    <Dock>
     39        <effects>
     40            <DockToShip target="destroyer" />
     41        </effects>
     42        <events>
     43            <execute>
     44                <EventListener event="dockMe" />
     45            </execute>
     46        </events>
     47        <attached>
     48            <DistanceTrigger position="0,0,0" distance="50" target="Pawn" beaconMode="exclude" targetname="destroyerBeacon" name="dockMe" />
     49            <Billboard material="Examples/Flare" colour="1.0, 0, 0" />
     50        </attached>
     51    </Dock>
     52
     53
    5054
    5155      <SpaceShip
     56   position               = "-150,-50,-100"
    5257   hudtemplate            = "spaceshiphud"
    5358   camerapositiontemplate = "spaceshipassffcameras"
     
    7176  >
    7277    <attached>
    73         <DistanceTriggerBeacon name="beacon1" />
    74         <DockingTarget name="asdf" />
     78        <DistanceTriggerBeacon name="bcnSpaceShip1" />
     79        <DockingTarget name="spaceShip1" />
    7580
    7681      <Model position="0,0,0" yaw="90" pitch="-90" roll="0" scale="4" mesh="assff.mesh" />
     
    96101
    97102    <Destroyer
    98       position          = "100,150,0"
     103      position          = "100,150,100"
    99104      collisionType     = "dynamic"
    100105      mass              = "100000"
     
    108113      <attached>
    109114
    110         <DistanceTriggerBeacon name="destroyerBeacon" />
    111         <DockingTarget name="theDestroyer" />
     115        <DistanceTriggerBeacon name="bcnDestroyer" />
     116        <DockingTarget name="destroyer" />
    112117
    113118
Note: See TracChangeset for help on using the changeset viewer.