Changeset 3947 for data/branches/single_player_map/scripts
- Timestamp:
- Jun 29, 2006, 5:30:53 PM (18 years ago)
- Location:
- data/branches/single_player_map/scripts
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
data/branches/single_player_map/scripts/guard.lua
r3946 r3947 1 1 -- Global Variables 2 walkingRouteOne = false -- True if thestranger is walking route one2 walkingRouteOne = true -- True if thestranger is walking route one 3 3 exitPositionReached = false 4 4 playerInLock = false … … 22 22 playerZ = Player:getAbsCoorZ() 23 23 24 playerInLock = false 24 if dist( playerX,playerY,playerZ,161.76,49,358.87 ) < 60 then 25 playerInLock = true 25 26 end 26 27 28 end 29 30 routeOneProgrammed = false 27 31 function walkRouteOne(timestep) 28 32 33 if not routeOneProgrammed then 34 io.write("Guard called \n") 35 guard:walkTo(-154.592667, 80.000000, 231.381805) 36 routeOneProgrammed = true 37 end 29 38 30 39 end … … 52 61 53 62 if walkingRouteOne then 54 wa klRouteOne(timestep)63 walkRouteOne(timestep) 55 64 end 56 65
Note: See TracChangeset
for help on using the changeset viewer.