Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 30, 2006, 5:29:32 PM (18 years ago)
Author:
snellen
Message:

scripts updated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • data/branches/single_player_map/scripts/secondguard.lua

    r3964 r3965  
    1919guardZ = guard:getAbsCoorZ()
    2020
    21 if dist( guardX,guardY,guardZ,35.48, 29, 191.28 ) < 60 then
     21if dist( guardX,guardY,guardZ,35.48, 29, 191.28 ) < 30 then
    2222allOk = false
    2323end
     
    3232
    3333if dist( prisonerX,prisonerY,prisonerZ,162.757919,49,363.489349 ) < 60 then
    34 io.write("Prisonner reached lock \n")
    35 --prisonerReachedLock = true
     34--io.write("Prisonner reached lock \n")
     35prisonerReachedLock = true
    3636end
    3737
     
    283283end
    284284
    285 if secondguard:finalGoalReached() then
     285guardX = secondguard:getAbsCoorX()
     286guardY = secondguard:getAbsCoorY()
     287guardZ = secondguard:getAbsCoorZ()
     288
     289if dist( guardX,guardY,guardZ, 2.861493, 29, -1705.131958) < 60 then
    286290return true
    287291end
     
    291295end
    292296
     297time = 2
    293298function tick(timestep)
    294299--io.write("Secondguard called \n")
     
    301306end
    302307
     308--do talking
     309if cellReached then
     310time = time - timestep
     311end
     312
     313
     314if time < 0 then
     315
    303316if cellReached and not guidePositionReached then
    304317guidePositionReached = goToGuidePosition(timestep)
     
    313326end
    314327
     328
     329end
     330
     331
    315332return false
    316333end
Note: See TracChangeset for help on using the changeset viewer.