Changeset 11974 for code/branches/ScriptableController_FS18/data
- Timestamp:
- May 17, 2018, 4:04:14 PM (7 years ago)
- Location:
- code/branches/ScriptableController_FS18/data/levels
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ScriptableController_FS18/data/levels/AAAScriptableControllerTest.oxw
r11936 r11974 16 16 include("templates/spaceshipEscort.oxt") 17 17 include("templates/endurancetest_template.oxt") 18 include("templates/AAAAutonomousDroneTemplate.oxt") 18 19 ?> 19 20 … … 31 32 <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"/> 32 33 <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 33 36 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>43 37 44 38 -
code/branches/ScriptableController_FS18/data/levels/scripts/AAAScriptableControllerTest.lua
r11936 r11974 60 60 61 61 62 function spawn_dummy() 63 orxPrint("Spawning dummy!") 64 spawnTest("dummy") 65 end 66 67 62 68 function kill_player_after_timeout(pawn) 63 69 orxPrint("Killing player after 5s") … … 86 92 87 93 94 function spawn_dummy_after_timeout(seconds) 95 orxPrint("Spawning dummy after " .. tostring(seconds)) 96 registerAfterTimeout(spawn_dummy, seconds) 97 end 88 98 89 99 90 move_dummy_after_timeout(5)91 kill_dummy_after_timeout(10)92 100 93 101 … … 96 104 97 105 98 spawn("ModularSpaceShip", "sepp") 99 setPosition("sepp", 500, 0, 0) 106 spawn_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.