Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 17, 2018, 4:04:14 PM (6 years ago)
Author:
adamc
Message:

can

Location:
code/branches/ScriptableController_FS18/data/levels
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ScriptableController_FS18/data/levels/AAAScriptableControllerTest.oxw

    r11936 r11974  
    1616  include("templates/spaceshipEscort.oxt")
    1717  include("templates/endurancetest_template.oxt")
     18  include("templates/AAAAutonomousDroneTemplate.oxt")
    1819?>
    1920
     
    3132    <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"/>
    3233    <SpawnPoint team=0 position="100,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipescort />
     34    <!-- <SpawnPoint team=2 position="0,0,0" lookat="0,0,0" spawnclass=AAAAutonomousDrone pawndesign=AAAAutonomousDroneTemplate />  -->
     35   
    3336
    34 
    35   <AAAAutonomousDrone id="dummy" position="0,0,0">
    36     <attached>
    37       <Model scale="10" mesh="drone.mesh"/>
    38     </attached>
    39     <collisionShapes>
    40       <BoxCollisionShape position="0,0,0" halfExtents="10, 10, 10" />
    41     </collisionShapes>
    42   </AAAAutonomousDrone>
    4337   
    4438 
  • code/branches/ScriptableController_FS18/data/levels/scripts/AAAScriptableControllerTest.lua

    r11936 r11974  
    6060
    6161
     62function spawn_dummy()
     63        orxPrint("Spawning dummy!")
     64        spawnTest("dummy")
     65end
     66
     67
    6268function kill_player_after_timeout(pawn)
    6369        orxPrint("Killing player after 5s")
     
    8692
    8793
     94function spawn_dummy_after_timeout(seconds)
     95        orxPrint("Spawning dummy after " .. tostring(seconds))
     96        registerAfterTimeout(spawn_dummy, seconds)
     97end
    8898
    8999
    90 move_dummy_after_timeout(5)
    91 kill_dummy_after_timeout(10)
    92100
    93101
     
    96104
    97105
    98 spawn("ModularSpaceShip", "sepp")
    99 setPosition("sepp", 500, 0, 0)
     106spawn_dummy_after_timeout(5)
     107
     108
  • code/branches/ScriptableController_FS18/data/levels/templates/AAAAutonomousDroneTemplate.oxt

    r11928 r11974  
     1<Template name=AAAAutonomousDroneTemplate>
     2  <AAAAutonomousDrone>
     3    <attached>
     4      <Model scale="10" position="0,0,0" mesh="drone.mesh"/>
     5    </attached>
     6    <collisionShapes>
     7      <BoxCollisionShape position="0,0,0" halfExtents="10, 10, 10" />
     8    </collisionShapes>
     9  </AAAAutonomousDrone>
     10</Template>
Note: See TracChangeset for help on using the changeset viewer.