Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/branches/presentation/scripts/floorguy.lua @ 4100

Last change on this file since 4100 was 4080, checked in by bensch, 18 years ago

orxonox/data/trunk: merged the single_player_map back.
merged with command:
svn merge https://svn.orxonox.net/data/branches/single_player_map . -r624:HEAD
no conflicts, that mattered (all merged to the favour of the branche)

File size: 1.6 KB
Line 
1-- Get objects from orxonox
2thisscript:addObject("GenericNPC", "floorguy")
3thisscript:addObject("FPSPlayer", "Player")
4
5programRoute = true
6height = -10
7
8function tick(timestep)
9
10if programRoute then
11floorguy:runTo( 800.634338, height, -340.454163)
12floorguy:runTo( 800.965149, height, -317.040039)
13floorguy:runTo( 801.330627, height, -291.156891)
14floorguy:runTo( 801.922913, height, -274.193085)
15floorguy:runTo( 802.959045, height, -258.950653)
16floorguy:runTo( 803.812805, height, -246.390198)
17floorguy:runTo( 804.034180, height, -232.661407)
18floorguy:runTo( 816.056702, height, 407.114502)
19floorguy:runTo( 817.066284, height, 439.783112)
20floorguy:runTo( 817.734314, height, 461.401306)
21floorguy:runTo( 818.361816, height, 481.702789)
22floorguy:runTo( 820.161621, height, 540.826538)
23floorguy:runTo( 820.825195, height, 579.028748)
24floorguy:runTo( 821.907410, height, 641.302673)
25floorguy:runTo( 823.706055, height, 744.863098)
26floorguy:runTo( 820.552490, height, 761.699585)
27floorguy:runTo( 809.810425, height, 771.055420)
28floorguy:runTo( 794.455383, height, 779.180725)
29floorguy:runTo( 779.520386, height, 773.730957)
30floorguy:runTo( 769.395630, height, 762.138306)
31floorguy:runTo( 761.172668, height, 749.739258)
32floorguy:runTo( 756.049500, height, 736.094116)
33floorguy:runTo( 755.904297, height, 648.224854)
34floorguy:runTo( 742.674744, height, -243.343140)
35floorguy:runTo( 742.312805, height, -273.083893)
36floorguy:runTo( 741.927856, height, -304.735474)
37floorguy:runTo( 741.548035, height, -335.971069)
38floorguy:runTo( 741.181824, height, -366.028503)
39programRoute = false
40end
41
42if floorguy:finalGoalReached() then
43programRoute = true
44end
45
46
47return false
48end
Note: See TracBrowser for help on using the repository browser.