Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4442


Ignore:
Timestamp:
Jan 17, 2007, 11:36:47 PM (18 years ago)
Author:
snellen
Message:

spaceshiptowercontrolscript: start implementation

Location:
data/trunk/scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • data/trunk/scripts/attractor.lua

    r4202 r4442  
    1 -- Register Classes to use
    2 thisscript:registerClass("AttractorMine")
    3 thisscript:registerClass("ScriptTrigger")
    4 
    51-- Create the trigger
    62trigger = ScriptTrigger()
    73trigger:setScript("attractor.lua")
    84trigger:setFunction("tick")
    9 trigger:setAbsCoor(-84, 19, 77)
     5trigger:setAbsCoor(440, 35, 0)
    106trigger:setTarget("Player")
    11 trigger:setRadius(100)
     7trigger:setRadius(20)
    128trigger:setDebugDraw(true)
     9trigger:setTriggerRemains(false)
    1310
    1411
    1512
    16 created = true
     13--created = true
    1714function tick(timestep)
    1815
    19 if not created then
    20 am = AttractorMine()
    21 am:setAbsCoor(-84, 19, 77)
    22 created = true
    23 end
     16io.write("Script called \n")
     17
     18--if not created then
     19--am = AttractorMine()
     20--am:setAbsCoor(-84, 19, 77)
     21--created = true
     22--end
    2423
    2524return false
    2625end
     26 io.write("script generated\n")
  • data/trunk/scripts/spaceship_tower.lua

    r4435 r4442  
    99thisscript:addObject("FPSPlayer", "Player")
    1010thisscript:addObject("GenericNPC", "pedestrianOne")
     11thisscript:addObject("GenericNPC", "hangarguyOne")
    1112
    1213
     
    7071
    7172
     73-- hangarguy
     74hangarguy = { }
     75--{
     76
     77 hangarguy.routeProgramed = false
     78
     79 function hangarguy:tick(timestep)
     80  if not hangarguy.routeProgramed then
     81
     82hangarguyOne:walkTo( 4.520885, 35, -715.864136)
     83hangarguyOne:walkTo( 4.436781, 35, -710.607483)
     84hangarguyOne:walkTo( 4.271256, 35, -700.261902)
     85hangarguyOne:walkTo( 4.108314, 35, -690.077698)
     86hangarguyOne:walkTo( 2.860425, 35, -612.082458)
     87hangarguyOne:walkTo( 2.336200, 35, -579.317566)
     88hangarguyOne:walkTo( 19.468971, 35, -558.118713)
     89hangarguyOne:walkTo( 58.664307, 35, -541.788879)
     90hangarguyOne:walkTo( 102.207947, 35, -538.448669)
     91hangarguyOne:walkTo( 148.613098, 35, -525.434814)
     92hangarguyOne:walkTo( 194.356705, 35, -510.325592)
     93hangarguyOne:walkTo( 241.033600, 35, -493.087036)
     94hangarguyOne:walkTo( 280.100891, 35, -476.127960)
     95hangarguyOne:walkTo( 317.930084, 35, -459.305878)
     96hangarguyOne:walkTo( 352.476410, 35, -435.666595)
     97hangarguyOne:walkTo( 372.327820, 35, -421.279785)
     98hangarguyOne:walkTo( 399.971436, 35, -395.954559)
     99hangarguyOne:walkTo( 416.877686, 35, -362.181549)
     100hangarguyOne:walkTo( 432.721222, 35, -311.302490)
     101hangarguyOne:walkTo( 469.218750, 35, -233.788040)
     102hangarguyOne:walkTo( 487.923004, 35, -200.841125)
     103hangarguyOne:walkTo( 506.862518, 35, -162.215515)
     104hangarguyOne:walkTo( 529.612061, 35, -115.549751)
     105hangarguyOne:walkTo( 542.065125, 35, -88.352898)
     106hangarguyOne:walkTo( 558.192444, 35, -39.543404)
     107hangarguyOne:walkTo( 559.105713, 35, -34.795399)
     108hangarguyOne:walkTo( 563.437378, 35, -31.207838)
     109hangarguyOne:walkTo( 575.247192, 35, -21.994106)
     110hangarguyOne:walkTo( 590.928040, 35, -15.268648)
     111hangarguyOne:walkTo( 660.693298, 35, -4.461691)
     112hangarguyOne:walkTo( 666.650879, 35, -2.223409)
     113hangarguyOne:walkTo( 668.187927, 35, 4.955472)
     114hangarguyOne:walkTo( 671.830505, 35, 21.968117)
     115hangarguyOne:walkTo( 675.100159, 35, 37.731144)
     116hangarguyOne:walkTo( 677.764221, 35, 53.632107)
     117hangarguyOne:walkTo( 677.170837, 35, 62.944923)
     118hangarguyOne:walkTo( 675.125671, 35, 81.444199)
     119hangarguyOne:walkTo( 674.070251, 35, 97.964783)
     120hangarguyOne:walkTo( 674.865112, 35, 112.956894)
     121hangarguyOne:walkTo( 683.106750, 35, 123.733559)
     122hangarguyOne:walkTo( 697.092224, 35, 130.347214)
     123hangarguyOne:walkTo( 711.597778, 35, 134.194839)
     124hangarguyOne:walkTo( 731.452209, 35, 133.556061)
     125hangarguyOne:walkTo( 744.283691, 35, 127.194984)
     126hangarguyOne:walkTo( 754.862183, 35, 113.226959)
     127hangarguyOne:walkTo( 759.921082, 35, 101.175034)
     128hangarguyOne:walkTo( 765.828674, 35, 86.496742)
     129hangarguyOne:walkTo( 772.430176, 35, 70.094063)
     130hangarguyOne:walkTo( 778.920776, 35, 53.967388)
     131hangarguyOne:walkTo( 786.386292, 35, 36.463428)
     132hangarguyOne:walkTo( 806.520142, 35, 25.996820)
     133hangarguyOne:walkTo( 867.622192, 35, 17.105639)
     134hangarguyOne:walkTo( 897.198181, 35, 13.109496)
     135hangarguyOne:walkTo( 929.129517, 35, 9.825047)
     136hangarguyOne:walkTo( 987.034302, 35, 6.972207)
     137hangarguyOne:walkTo( 1040.090698, 35, 5.634526)
     138hangarguyOne:walkTo( 1095.084595, 35, 6.542047)
     139hangarguyOne:walkTo( 1137.440552, 35, 8.371919)
     140hangarguyOne:walkTo( 1180.903564, 35, 11.816477)
     141
     142    hangarguy.routeProgramed = true
     143
     144  end
     145
     146 end
     147
     148--}
     149
    72150
    73151
     
    78156
    79157pedestrian:tick(timestep)
     158hangarguy:tick(timestep)
    80159
    81160return false
Note: See TracChangeset for help on using the changeset viewer.