Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

continued implementation…

File:
1 edited

Legend:

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

    r3946 r3947  
    11-- Global Variables
    2 walkingRouteOne = false   -- True if thestranger is walking route one
     2walkingRouteOne = true   -- True if thestranger is walking route one
    33exitPositionReached = false
    44playerInLock = false
     
    2222playerZ = Player:getAbsCoorZ()
    2323
    24 playerInLock = false
     24if dist( playerX,playerY,playerZ,161.76,49,358.87 ) < 60 then
     25playerInLock = true
    2526end
    2627
     28end
     29
     30routeOneProgrammed = false
    2731function walkRouteOne(timestep)
    2832
     33if not routeOneProgrammed then
     34io.write("Guard called \n")
     35guard:walkTo(-154.592667, 80.000000, 231.381805)
     36routeOneProgrammed = true
     37end
    2938
    3039end
     
    5261
    5362if walkingRouteOne then
    54 waklRouteOne(timestep)
     63walkRouteOne(timestep)
    5564end
    5665
Note: See TracChangeset for help on using the changeset viewer.