Changeset 4057 for data/branches/single_player_map/scripts/prisoner.lua
- Timestamp:
- Jul 3, 2006, 2:51:25 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
data/branches/single_player_map/scripts/prisoner.lua
r4056 r4057 3 3 thisscript:addObject("FPSPlayer", "Player") 4 4 thisscript:addObject("GenericNPC", "secondguard") 5 thisscript:addObject("GenericNPC","guard") 5 6 6 7 … … 15 16 16 17 randTime = 0 17 height = 8018 height = 29 18 19 19 20 … … 40 41 playerZ = Player:getAbsCoorZ() 41 42 43 44 guardX = guard:getAbsCoorX() 45 guardY = guard:getAbsCoorY() 46 guardZ = guard:getAbsCoorZ() 47 48 42 49 if dist( playerX,playerY,playerZ,161.76,49,358.87 ) < 60 then 43 50 playerInLock = true 44 51 end 45 52 46 end 47 48 53 54 if dist( guardX,guardY,guardZ,playerX, playerX, playerX) > 30 and hangarProgrammed then 55 --prisoner:stop() 56 guardStopped = true 57 end 58 59 if dist( guardX,guardY,guardZ,playerX, playerX, playerX) < 30 and hangarProgrammed and guardStopped then 60 --prisoner:continue() 61 guardStopped = false 62 end 63 64 end 49 65 50 66 walkProgrammed = false
Note: See TracChangeset
for help on using the changeset viewer.